Web service to manage the CocoaPods State of the Union lottery.
SOTU expects the following environment variables configured:
DATABASE_URL
GITHUB_CLIENT_ID
GITHUB_CLIENT_SECRET
-
Create a virtual environment:
$ virtualenv venv
-
Activate the virtual environment:
$ source venv/bin/activate
-
Install the dependencies:
$ pip install -r requirements.txt
-
Migrating the database:
$ invoke migrate
You can use foreman to run the server.
$ foreman start
Firstly, run a mock GitHub API:
$ api-mock github.apib --port 5959
Then run the tests:
$ invoke test