A minimal backend demonstrating REST APIs, persistence, containers, and CI.
- Create, fetch, and list orders
- FastAPI with automatic docs at
/docs - SQLAlchemy + SQLite (override with
DATABASE_URL) - Dockerfile and docker-compose for local runs
- GitHub Actions CI (tests + Docker build)
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reloadOpen http://localhost:8000/docs
docker compose up --buildOpen http://localhost:8000/docs
Create:
curl -X POST http://localhost:8000/orders -H "Content-Type: application/json" -d '{"item":"Brake Pads","quantity":2}'Get by id:
curl http://localhost:8000/orders/1List:
curl http://localhost:8000/ordersDATABASE_URL(default:sqlite:///./app.db)
pytest -q