Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 846 Bytes

CONTRIBUTING.md

File metadata and controls

30 lines (17 loc) · 846 Bytes

Contributing to Napoletano-Web

Local Setup

docker-compose build
docker-compose up

Database migrations

docker-compose run web poetry run alembic revision --autogenerate -m "init"
docker-compose run web poetry run alembic upgrade head

PgAdmin

docker-compose up pgadmin

Then go to http://localhost:5050/. The credentials are [email protected] / admin. Connect to the server using the address db, username postgres and password postgres.

Import definitions

cat definitions.json | docker-compose run web poetry run python import_definitions.py

With a Dokku-managed server, figure out the container id using docker container ls, then:

cat definitions.json | docker exec -i <container-id> /app/.heroku/python/bin/python /app/import_definitions.py

Tests

poetry run pytest