An interface to submit, serve, and analyze COVID19 related gene and drug sets.
The entrypoint of the application is in covid19/app/app.py; do not change the name of the file or directory.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtsource venv/bin/activate
python run.pyAnd visit http://localhost:8080/covid19.
Ensure you update requirements.txt whenever installing a new dependency with pip.
In the case of extra (debian) system dependencies, add them to deps.txt.
The .env.example and docker-compose.yml can be used to establish a local database.
docker-compose up -d database: will start the databasealembic current: will show you the current migrations on the active database (defined in .env)alembic upgrade +1: apply single database migration on the active database (defined in .env)alembic upgrade head: apply all database migrations on the active database (defined in .env)alembic downgrade -1: revert database migrations on the active database (defined in .env)python ./manage.py dump > your_data.dump: Dump the contents of the database to a filepython ./manage.py load < your_data.dump: Load contents of the database from a file
Run pytest in the root folder to run unit tests.
docker-compose build appdocker-compose push appdocker-compose run app