CoolFace
Apppublic

beautyhealthytips177/todo-phase3-hackathon2

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
App README

Todo Backend API

FastAPI backend for the Todo application with PostgreSQL database.

Environment Variables

You need to configure these secrets in Hugging Face Spaces settings:

  • —DATABASE_URL: PostgreSQL connection string (e.g., from Neon)
  • —JWT_SECRET: Secret key for JWT token generation (min 32 characters)
  • —CORS_ORIGINS: Comma-separated list of allowed frontend URLs (e.g., https://your-app.vercel.app)

API Endpoints

  • —GET /api/health - Health check
  • —POST /api/auth/register - User registration
  • —POST /api/auth/login - User login
  • —GET /api/tasks - Get all tasks
  • —POST /api/tasks - Create new task
  • —PATCH /api/tasks/{id}/complete - Mark task as complete
  • —DELETE /api/tasks/{id} - Delete task