Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
sotu
.flake8
.gitignore
LICENSE
Procfile
README.md
circle.yml
dev_requirements.txt
github.apib
requirements.txt
tasks.py

README.md

CocoaPods State of the Union

Circle CI Status

Web service to manage the CocoaPods State of the Union lottery.

Environment

SOTU expects the following environment variables configured:

  • DATABASE_URL
  • GITHUB_CLIENT_ID
  • GITHUB_CLIENT_SECRET

Setup

  1. Create a virtual environment:

     $ virtualenv venv
    
  2. Activate the virtual environment:

     $ source venv/bin/activate
    
  3. Install the dependencies:

     $ pip install -r requirements.txt
    
  4. Migrating the database:

     $ invoke migrate
    

Running the website

You can use foreman to run the server.

$ foreman start

Running the tests

Firstly, run a mock GitHub API:

$ api-mock github.apib --port 5959

Then run the tests:

$ invoke test