AKA Pidgeon Politics
Note: This has developed on OSX 10.11.3 - operation on other OS's not gauranteed.
-
Install the App Engine Python SDK. See the README file for directions. You'll need python 2.7 and pip 1.4 or later installed too.
-
Clone this repo with
git clone https://github.com/jrgrafton/tweet-debate
-
Install dependencies in the project's lib directory. Note: App Engine can only import libraries from inside your project directory.
cd <location-of-checkout>/tweet-debate pip install -r requirements.txt -t lib
-
Enable Sockets and SSL
- Create backups of
/path-to-gae-sdk/google/appengine/tools/devappserver2/python/sandbox.py
and/path-to-gae-sdk/google/appengine/dis27/socket.py
- Add "_ssl" and "_socket" keys to the dictionary _WHITE_LIST_C_MODULES in
/path-to-gae-sdk/google/appengine/tools/devappserver2/python/sandbox.py
- Replace
/path-to-gae-sdk/google/appengine/dis27/socket.py
with the socket.py file from your Python framework.
-
Run this project locally from the command line:
./main.sh
Visit the application http://localhost:8080
See the development server documentation for options when running dev_appserver.
sh runtests.sh - All tests must pass before pushing to master
To deploy the application:
-
Use the Admin Console to create a project/app id. (App id and project id are identical)
-
appcfg.py -A <your-project-id> app.yaml twitter_backend.yaml --oauth2 update .
-
Congratulations! Your application is now live at your-app-id.appspot.com