572 B
572 B
Plan: Add FastAPI to the Project
Goal
Add FastAPI as the web framework with a minimal health check endpoint.
Changes
1. Dependencies
- Add
fastapianduvicorn[standard]topyproject.tomlunder[project.dependencies] - Install dependencies into the virtual environment
2. Application Entry Point
- Create
main.pywith a FastAPI app instance - Add a health check endpoint (
GET /) that returns{"status": "ok"}
Verification
pytest tests/— all tests passuvicorn main:app --reload— server starts and health endpoint responds