For the frontend repo see: kraken-frontend
- Start mongoDB (depends on your OS)
- Navigate to the root directory
- Run
pip3 install -r requirements.txt
- Start the api server with
uvicorn api.main:app --host 0.0.0.0 --port 80 --log-level debug --reload
- Go to http://localhost/docs
- Navigate to the root directory
- Run
docker compose -f docker-compose.dev.yml up -d --build
- Go to http://localhost/docs
- Head to http://localhost:9090 to access the prometheus dashboard.
- Navigate to the root directory
- Run
python3 -m unittest
- To run a specific file run you can specify it like so
python3 -m unittest api/tests/test_projects.py
- Run
coverage run --source=api -m unittest
- Run
coverage report > coverage.txt
to save the coverage report to a file. - Run
coverage html
to generate a html report.