The fastest path to a running instance of the AI Ticket Support System is Docker Compose. A single command spins up PostgreSQL with pgvector, Redis, the Node.js backend, and the React frontend — fully wired together. All you need before starting is Docker Desktop and an OpenAI API key.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/yocxy2/2a/llms.txt
Use this file to discover all available pages before exploring further.
Set up environment variables
Copy the example environment file and open it to add your credentials:The Replace
.env.example file contains the following defaults:.env.example
your_openai_api_key_here with your actual OpenAI API key. All other values work out of the box for local development with Docker Compose.OPENAI_API_KEY is the only value you must change. The system cannot classify or respond to tickets without a valid key.Start with Docker Compose
From the project root, bring up all services:Docker Compose will build the backend and frontend images and start the following services:
The backend container automatically runs
| Service | Port | Notes |
|---|---|---|
| PostgreSQL (pgvector) | 5432 | Waits for health check before backend starts |
| Redis | 6379 | Waits for health check before backend starts |
| Backend API | 3001 | Runs prisma generate then npm run dev on startup |
| Frontend (nginx) | 80 | Depends on the backend service |
npx prisma generate && npm run dev on startup, so database migrations are applied before the API begins accepting requests.Access the application
Once all containers are running and healthy, open the following URLs:
The admin dashboard is accessible via the Admin Dashboard link in the frontend navigation. The RAG Visualizer shows real-time retrieval scores, and the Knowledge Base manager lets you adjust article importance weights.
| URL | Description |
|---|---|
| http://localhost | React frontend (ticket submission + admin dashboard) |
| http://localhost:3001 | Backend API root |
| http://localhost:3001/api/health | Health check endpoint |
Manual setup (without Docker)
If you prefer to run services directly on your machine, follow the steps below for each component.- Backend
- Frontend
Install dependencies and run database migrations before starting the dev server:The backend starts on port 3001 by default. The entity extraction worker starts automatically because
index.ts imports ./workers/entityExtractionWorker directly.Verify it works
Once the stack is running, create a test ticket usingcurl to confirm the full AI pipeline is functional:
ai_resolved. A score below 0.7 produces a pending_agent status and routes the ticket to the human queue.