Skip to content

CocoaPods/sotu.cocoapods.org

Repository files navigation

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