- uv for Python package and environment management.
By default, the dependencies are managed with uv, go there and install it.
From ./mtaa-backend/ you can install all the dependencies with:
uv syncThen you can activate the virtual environment with:
source .venv/bin/activateRun project with:
fastapi dev app/api/main.pySeeders are used to populate the database with initial data. You can run seeders individually or all at once.
To run a single seeder, use the following command, replacing module_name with the specific seeder module you want to run:
python -m app.seeders.module_nameFor example, to run the 1_users seeder:
python -m app.seeders.1_usersTo run all seeders in the predefined order, use the following command:
python app/seeders/run_all_seeders.pyThis will execute all seeders in sequence, stopping if any seeder fails.
Automated tests are located in the app/tests/ directory. They are written using pytest and pytest-asyncio.
uv run pytestTests are automatically executed on push and pull requests to the main branch via GitHub Actions. You can find the workflow definition in .github/workflows.