Installation
What this page is for
Set up local infrastructure and run the backend API.
Prerequisites
- Node.js 20+
- pnpm
- Docker
- Git
Steps
- Clone repository and move to backend.
git clone https://github.com/ragler-oss/ragler.git
cd ragler/backend
- Install and configure environment.
pnpm install
cp .env.example .env
- Set required variables in
.env.
OPENAI_API_KEY=...
REDIS_HOST=localhost
REDIS_PORT=6379
QDRANT_URL=http://localhost:6333
- Start dependencies from repo root.
cd ..
docker compose up -d redis qdrant
cd backend
- Start backend.
pnpm start:dev
Verify
curl http://localhost:3000/api/health/liveness
curl http://localhost:3000/api/health/readiness
Open Swagger: http://localhost:3000/api/docs.
Troubleshooting
Environment validation failed: check required.envkeys.- Readiness fails: check Docker containers and ports
6379,6333.
Next steps
/docs/getting-started/configuration/docs/getting-started/first-collection