eirism / PU-66

Iris
MIT License
1 stars 0 forks source link

PU-66

To run locally you need python3, pip, a database (Postgres is preferred) and an account at Indico.

Installation

The PostgreSQL database driver requires some extra libraries to be installed, see its documentation

pip install -r requirements.txt

If the pip install fails with a FileNotFound exception, try running it one more time.

Running locally

The following environment variables needs to be set.

Variable Value
SECRET_KEY A random value, keep it secret
DATABASE_URL A SQLAlchemy database url
PORT The port number the server will run on
INDICO_API_KEY Your Indico API key

Before running the server the first time, you will need to create and upgrade the DB. This is done with the following commands: python db_create.py, python db_upgrade.py

Run the server with python run.py

Running tests

To run the tests and generate html coverage report: PYTHONPATH=. py.test --cov-report html:cov_html --cov=iris tests