- Set up a Python2 virtualenv to manage Python dependencies
- Source your virtualenv
- Run
pip install -r requirements.txtto install all dependencies - Install PostgreSQL to run a database locally
- If you're using Mac, install Postgres.app from here
- Set three environment variables:
DATABASE_URLpoints to the URL of a development database, which has to be set up using Postgres on your system. A sampleDATABASE_URLcould look likepostgres://username:password@localhost/cog.QUILLis the URL to your Quill instance for auth.SECRETneeds to be the same JWT secret used in your Quill instance.
- Run
python initialize.py- This initializes the database - run it if you make any changes to the models and are fine with overwriting data.
- Run
make run - The site will be visible at
localhost:8000
- Run
make testto run all tests