A simple FastAPI backend for a Todo application, made with Cursor.
Deployed at: https://valiant-communication-production.up.railway.app/docs
Frontend repo: https://github.com/AaronMullan/next-todo
- Make sure you have Python 3.8+ installed
- Activate the virtual environment:
source .venv/bin/activate # On Unix/macOS # or .venv\Scripts\activate # On Windows
- Install dependencies:
pip install -r requirements.txt
Start the server with:
uvicorn main:app --reloadThe application will be available at http://localhost:8000
Once the server 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 /items/{item_id}: Get an item by IDPOST /items/: Create a new item