FastAPI backend with authentication and form data management.
- FastAPI
- PostgreSQL
- SQLAlchemy
- JWT Authentication
- Install dependencies:
pip install -r requirements.txt- Set environment variables in
.env:
DATABASE_URL=postgresql://user:password@localhost:5432/kpa_db
SECRET_KEY=your-secret-key
- Run with Docker:
docker-compose upOr run locally:
python main.pyAuth:
POST /api/v1/auth/loginPOST /api/v1/auth/register
Form Data (requires auth):
POST /api/v1/form/submitGET /api/v1/form/listGET /api/v1/form/{id}PUT /api/v1/form/{id}DELETE /api/v1/form/{id}
API docs available at /docs