-
Clone the repository
-
Install poetry. Recommended way:
$ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
Alternative way (not recommended):
$ pip install --user poetry
- Install project's dependencies:
$ poetry install
- To build and run the Docker container, execute:
$ docker-compose --env-file exome_p/.env up -d --build
If something went wrong, you can check logs by running:
$ docker-compose logs -f
- Open http://127.0.0.1:8000/ in the web-browser
To execute a command in container, run:
$ docker-compose exec web poetry run <command>
For example:
$ docker-compose exec web poetry run python manage.py migrate
To get access to the database, first set the environment variables:
$ export SQL_USER=<username>
$ export SQL_DATABASE=<database name>
Then run:
$ docker-compose exec db psql --username=${SQL_USER} --dbname=${SQL_DATABASE}
$ docker-compose exec web poetry run python manage.py test
$ black .
$ isort -rc exome_p