API source for the Powerdrive project
Powerdrive is a website that allows you to store and share files. It also provides a simple calendar allowing you to keep track of your events.
Jakub Buczek |
Jan Bylina |
Kinga Stec |
Michał Latra |
Bartłomiej Dąbrowski |
docker
docker-compose
To start the development server, run the following command:
docker compose up -d
This will start the development server on port 8000, and the database on port 5432.
To run all tests:
docker compose run --rm smaug test
To add new migrations: import your SqlAlchemy model to alembic/env.py and run the following command:
make migration name=<migration_name>
Migrations are run automatically when starting the development container. To run migrations manually:
make migrate