FastAPI backend for FocusSpark AI study platform with focus tracking, Pomodoro, quizzes and chat.
468
FocusSpark Backend is the Dockerized FastAPI API service for FocusSpark, an AI productivity and study platform built for students and focused work.
It powers the FocusSpark web app and Chrome extension with authentication, user profiles, Pomodoro study sessions, focus and emotion tracking, analytics, achievements, notifications, AI chat, document chat, quizzes, flashcards, and data export.
/docsdocker pull rayan0301/focusspark-backend:latest
docker run --name focusspark-backend --env-file .env -p 8000:8000 rayan0301/focusspark-backend:latest
API:
http://localhost:8000
Swagger docs:
http://localhost:8000/docs
Health check:
GET /
Expected response:
{
"message": "FocusSpark Backend Running"
}
This image expects configuration through environment variables. Create a .env file and pass it with --env-file .env when running the container.
Minimum required values:
DATABASE_URL=postgresql+psycopg2://postgres:[email protected]:5432/focusspark
JWT_SECRET=your-32-character-secret-key
CORS_ORIGINS=http://localhost:3000
Optional variables are available for AI providers, Cloudinary image uploads, CORS, and logging.
8000
Content type
Image
Digest
sha256:bcfb4330f…
Size
1.2 GB
Last updated
3 months ago
docker pull rayan0301/focusspark-backend