The Workforce Intelligence & Execution OS is a monorepo containing a FastAPI backend, a Celery background worker, and a Next.js 15 frontend. This quickstart guide walks you through cloning the repository, configuring your environment, installing dependencies, running all three services, and logging in with the bootstrap admin account.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Paramount-Intelligence/HR_Monitoring_System/llms.txt
Use this file to discover all available pages before exploring further.
The default local setup can use SQLite for the database — no PostgreSQL installation is required to get started. To use SQLite, comment out the
DATABASE_URL line in your .env file after copying it from .env.example. For a full production-equivalent environment with PostgreSQL, see the Local Development Guide.Prerequisites
Before you begin, ensure the following tools are installed on your machine:| Tool | Minimum Version | Notes |
|---|---|---|
| Node.js | v18.x | v20.x also supported |
| Python | 3.10 | v3.11 also supported |
| Redis | Latest stable | Required for Celery background tasks |
| Git | Any recent | For cloning the repository |
| PostgreSQL | 14+ | Optional locally; comment out DATABASE_URL to use SQLite instead |
Configure Environment Variables
Copy the root environment example file to Open
.env in the project root:.env and review these key values before proceeding:Set Up the Backend (API)
Navigate to the API application, create a Python virtual environment, and install all dependencies:Key packages installed include
fastapi==0.115.0, uvicorn[standard]==0.30.6, sqlalchemy==2.0.35, celery==5.4.0, redis==5.1.1, and alembic==1.13.3.Initialise the Database
With your virtual environment still active and from the Optionally, seed the database with initial reference data:
apps/api directory, run Alembic migrations to create all tables:The system automatically seeds permissions and bootstraps the default admin user on first API startup using the
BOOTSTRAP_ADMIN_EMAIL and BOOTSTRAP_ADMIN_PASSWORD values from your .env file. You do not need to run seed.py to get a working admin account.Set Up the Frontend
Return to the monorepo root and install all frontend dependencies via npm workspaces:npm workspaces automatically installs dependencies for
apps/web and all packages/ in a single command.Start the API Server
Open a new terminal. Navigate to The API will be available at
apps/api, activate your virtual environment, and start the FastAPI server:http://localhost:8080. The interactive API docs (Swagger UI) are at http://localhost:8080/docs.Start the Background Worker
Open a third terminal. Navigate to The
apps/api, activate your virtual environment, and start the Celery worker:--pool=solo flag is recommended on Windows to avoid multiprocessing issues. It is not required on macOS or Linux.Start the Frontend
From the monorepo root, start the Next.js development server:Alternatively, start it directly from the web app directory:The web application will be available at
http://localhost:3000.What’s Running
Once all services are started, you will have three processes running:| Service | URL | Description |
|---|---|---|
| Next.js Frontend | http://localhost:3000 | Role-based dashboards and UI |
| FastAPI Backend | http://localhost:8080 | REST API + WebSocket server |
| Swagger UI | http://localhost:8080/docs | Interactive API documentation |
| Celery Worker | — | Background jobs (alerts, reports) |
| Redis | redis://localhost:6379/0 | Message broker for Celery |
Next Steps
Local Development Guide
Full environment variable reference, database seeding, linting commands, and common error fixes.
System Architecture
Understand how the backend, frontend, worker, and database fit together.
Roles & Permissions
Invite your first users and assign roles via the Admin panel.
API Overview
Explore all available REST endpoints in the interactive Swagger docs.
