The first and foremost step you should compelete is to install Google App Engine. The program will not function without this step!
- Make sure that you open Command Prompt as admin.
- Download the Google App Engine SDK for Windows
- Double-click the SDK file you downloaded and follow the prompts to install the SDK
$ 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/- 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.
After installing the GAE, install Python 2.7 (if not installed).
- Download the Python 2.7 installer
- Double-click the installer and follow the prompts to install Python 2.7
$ sudo apt-get -y install python2.7
$ sudo installer -pkg python2.7
Install Git (if not installed)
$ cd ~
$ sudo apt install gitLastly, head back to the comp_head_local folder
$ cd comp_head_localThen, 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/fileif a file is denied to run.