This guide walks you through setting up a fully functional local development environment for the SSA Health Platform. You will clone the repository, install dependencies for both the React frontend and the NestJS backend, configure your environment variables, initialize the PostgreSQL database with Prisma, and verify that everything is running. By the end you will have the admin UI available atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/LMendoza70/SSA/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:5173 and the API with its Swagger documentation at http://localhost:3000.
Prerequisites
Before you begin, make sure the following are installed and available in your terminal:
To verify your Node.js version:To verify PostgreSQL is running and accessible:
| Requirement | Minimum version | Notes |
|---|---|---|
| Node.js | 18+ | Use nvm to manage versions |
| PostgreSQL | 14+ | Must include the pgvector extension |
| Git | Any recent version | Required to clone the repository |
The
pgvector extension is required for the AI chatbot module. If your PostgreSQL installation does not include it, follow the pgvector installation guide before proceeding.Clone and install
Clone the repository and install dependencies for both the backend and frontend. The two applications live in separate subdirectories and each has its own Install backend dependencies (NestJS):Install frontend dependencies (React + Vite):
package.json.Clone the repository:Configure environment
Each application requires its own Frontend —
.env file. Copy the examples below into the corresponding directories and update the values to match your local setup.Backend — backend/.env:frontend/.env:Initialize the database
Before running migrations, make sure the Then run the Prisma migrations and seed the database with initial data:
vector extension is enabled in your PostgreSQL database. Connect to the target database and run:prisma migrate dev applies all pending migrations and regenerates the Prisma client. prisma db seed populates the database with the initial roles, permissions, and any required reference data.Run the application
Start the backend and frontend servers. Each runs in its own terminal session.The backend uses NestJS watch mode (
start:dev), so it will automatically reload on file changes. The frontend uses Vite’s HMR (Hot Module Replacement) for instant updates.Verify the installation
Once both servers are running, open the following URLs in your browser:
Log in using the credentials created by the database seed script. If the admin UI loads and the Swagger page lists your API routes, the platform is running correctly.
| URL | What you should see |
|---|---|
http://localhost:5173 | The SSA admin UI — login screen |
http://localhost:3000/api/docs | Swagger UI with all API endpoints documented |
For production deployment, see the Deployment Guide.