Zaraa7/phase3-todo-api
0
Backend Core & Data Layer
RESTful API for managing user-owned tasks with JWT authentication.
Tech Stack
- Framework: FastAPI
- ORM: SQLModel
- Database: Neon PostgreSQL (serverless)
- Authentication: JWT (Better Auth compatible)
Quick Start
# Create virtual environment
python -m venv venv
venv\Scripts\activate # Windows
source venv/bin/activate # macOS/Linux
# Install dependencies
pip install -r requirements.txt
# Configure environment
cp .env.example .env
# Edit .env with your DATABASE_URL and JWT_SECRET
# Run server
uvicorn app.main:app --reload --port 8000Environment Variables
API Endpoints
API Documentation
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
Project Structure
backend/
├── app/
│ ├── main.py # FastAPI application
│ ├── config.py # Environment configuration
│ ├── database.py # Database connection
│ ├── auth/jwt.py # JWT verification
│ ├── models/task.py # SQLModel Task
│ ├── schemas/task.py # Pydantic schemas
│ └── routers/tasks.py # CRUD endpoints
├── requirements.txt
├── .env.example
└── README.mdFor detailed setup instructions, see quickstart.md.
