Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 527 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 527 Bytes

Expenses Server in FastAPI

Development

  1. Start the db:
sudo docker compose -f docker-compose.yml -p expenses_server up
  1. Start the server on port 8090:
poetry run uvicorn expenses_server.main:app --reload --port=8090 --use-colors
  1. Running tests
poetry run pytest # runs all tests
poetry run pytest -s --pdb # helpful for debugging tests
  1. Kill the containers and remove volumes
sudo docker compose -f docker-compose.yml -p expenses_server down --remove-orphans --volumes