A FastAPI-based REST API project.
- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txtTo run the application in development mode:
uvicorn app.main:app --reloadThe API will be available at http://localhost:8000
Once the application is running, you can access:
- Interactive API docs (Swagger UI):
http://localhost:8000/docs - Alternative API docs (ReDoc):
http://localhost:8000/redoc
GET /: Welcome messageGET /health: Health check endpoint