AI-enabled people management system. HR Hub lets an HR team manage employees, IT tasks, and support tickets through a web dashboard backed by an LLM agent that classifies requests and triggers downstream actions.
| Directory | What it is |
|---|---|
backend/ |
FastAPI server — API routes, business logic, PydanticAI agent, SQLAlchemy ORM |
frontend/ |
SvelteKit dashboard — employee, task, and ticket views + chat widget |
notebooks/ |
Data work: attrition model training, DB seed notebook |
mock-cloud/ |
Local stand-in for cloud infrastructure: db/ (SQLite file), storage/ (static data files) |
Prerequisites: uv, Yarn, Jupyter (for seeding), Docker (optional)
Development
make reset-db # delete DB → migrate → seed
make dev # backend (:8000) + frontend (:5173) concurrently
Production (local)
make prod # builds frontend, then starts both prod servers
Docker
# Copy backend/.env.example to backend/.env and fill in secrets (GROQ_API_KEY etc.)
make docker-up-build # build images and start containers
# backend → :8000 | frontend → :3000
See each subdirectory's README.md for detailed setup instructions.
| Target | What it does |
|---|---|
make reset-db |
Delete DB → run revision → run migrations → seed |
make dev |
Dev servers for backend (:8000) and frontend (:5173) |
make full-reset |
reset-db then dev |
make prod |
Build frontend, start both in production mode |
make backend-prod |
FastAPI production server only |
make frontend-prod |
Build + start SvelteKit Node server (:3000) |
make docker-up-build |
Build Docker images and start all containers |
make docker-down |
Stop and remove containers |
make docker-reset |
Full wipe (volumes included) and rebuild |