Skip to content

Latest commit

 

History

History
95 lines (76 loc) · 3.35 KB

File metadata and controls

95 lines (76 loc) · 3.35 KB

Setting up the project

Contents

Installing Google App Engine

The first and foremost step you should compelete is to install Google App Engine. The program will not function without this step!

Windows:

  • Make sure that you open Command Prompt as admin.
  1. Download the Google App Engine SDK for Windows
  2. Double-click the SDK file you downloaded and follow the prompts to install the SDK

Linux:

$ cd ~
$ mkdir comp_head_local
$ cd comp_head_local
$ wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.64.zip
$ unzip google_appengine_1.9.64.zip
$ export PATH=$PATH:/root/comp_head_local/google_appengine/

MacOS:

  • Download Google App Engine for macOS
  • Double-click on the zip file downloaded to expand it.
  • Create a new directory on your computer specific to compressor-head. Eg: comp_head_local (This is what we will use in this guide)
  • Navigate to this new directory and move the newly downloaded google_appengine to your directory.

OR, if you prefer executing these steps through the command-line,

$ cd ~
$ mkdir comp_head_local
$ cd comp_head_local
$ curl -O https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.64.zip
$ unzip google_appengine_1.9.64.zip
$ export PATH=$PATH:/root/comp_head_local/google_appengine/

That's it! Move on to the next steps to run the program.

Installing Python

After installing the GAE, install Python 2.7 (if not installed).

Windows:

  1. Download the Python 2.7 installer
  2. Double-click the installer and follow the prompts to install Python 2.7

Linux:

$ sudo apt-get -y install python2.7

MacOS:

$ sudo installer -pkg python2.7

Install Git (if not installed)

$ cd ~
$ sudo apt install git

Lastly, head back to the comp_head_local folder

$ cd comp_head_local

Running the app

Then, you can bend the repository to your computer and run a program from there

$ git clone https://github.com/jboss-outreach/compressor-head
$ cd google_appengine
$ python dev_appserver.py ../compressor-head --port=45456 --host=0.0.0.0
  • Use chmod +x /file/directory/file if a file is denied to run.

References