python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt -r dev-requirements.txt
uvicorn app.main:app --reload
pytest -q
If not works, you can use also this command :
PYTHONPATH=. pytest -q
docker build -t notes-app:dev .
docker run -p 8000:8000 notes-app:dev
You can access FastApi dashboard trough this endpoint : {{URL-API}}/docs
pip-audit -r requirements.txt
pip-audit -r dev-requirements.txt
- GET /healthz
- POST /notes {title, content}
- GET /notes
- GET /notes/{id}
- PUT /notes/{id} {title?, content?}
- DELETE /notes/{id}