- Look through
docker-compose.yml
in the project root and change the database configuration as you see fit - Run
docker-compose up -d
to create and set up the MongoDB Docker container - Through your preferred project workflow, export the
DB_URI
environment variable with the correct MongoDB connection string for your configuration (e.g.mongodb://root:admin@localhost:27017
) - The
DB_NAME
environment variable is up to you to decide - The
API_KEY
environment variable should be a working OpenAPI API key - Run in development mode with
fastapi dev src/main.py
- This project uses
pytest
, check thetest
folder for test files, to modify or add as you see fit - Once done, run all tests with
pytest
- Ensure environment variables defined in
docker-compose.yml
are up to date - Run with
docker-compose up -d
and the server will be available on port 8000 by default