A to-do list web application built with FastAPI and Databricks Lakebase.
- FastAPI - Modern, fast Python web framework
- Uvicorn - ASGI server for running the app
- python-dotenv - Environment variable management
- psycopg2 - PostgreSQL adapter for Lakebase connection
- databricks-sdk - Databricks SDK for authentication and token generation
- Create a
.envfile based onexample.envwith your real values - Install dependencies:
pip install -r requirements.txt - Run the app:
python app.py - Visit http://localhost:8000
GET /- Serves the main index.html pagePOST /todos- Create a new to-do itemGET /todos- List to-do items (use?include_all=trueto see deleted)PUT /todos/{id}- Update a to-do itemPUT /todos/{id}/status- Change to-do statusDELETE /todos/{id}- Soft delete a to-do item
/routers- API route handlers/services- Business logic and database operations/frontend- Static HTML frontend