FastAPI To-Do App
A simple to-do list application using FastAPI, MongoDB, JWT-based authentication, Bootstrap UI, and Docker.
- User registration and login (JWT + cookies)
- Add/view/delete to-do items
- MongoDB persistence
- Bootstrap-styled HTML templates
- Environment-based configuration
- Dockerized for easy deployment
- Python 3.10+
- Docker & Docker Compose
#1. Clone the repo
git clone https://github.com/yourusername/fastapi-todo.git
cd fastapi-todo
#2.Create a .env file:
cp .env.example .env
#3.Start the app:
docker-compose up --build
#4.Open in your browser:
App: http://localhost:8000
Swagger docs: http://localhost:8000/docs
#Build Without Docker (optional)
pip install -r requirements.txt
uvicorn app.main:app --reload