Prerequisites
Before you begin, make sure you have the following installed:- Node.js v20+ (LTS recommended, see
.nvmrc) - PostgreSQL 16+ with PostGIS extension
- Redis 6+ (or Valkey)
- Docker (optional, for containerized services)
Environment Setup
Step 1: Clone the Repository
Step 2: Install Dependencies
Step 3: Configure Environment Variables
Copy the example file and fill in your values:Step 4: Set Up the Database
Run database migrations:Step 5: Start the Server
For development with auto-reload:Your API should now be running at
http://localhost:3000Docker Setup (Alternative)
Run the entire stack with Docker Compose:- API server on port 3000
- PostgreSQL on port 5432
- Redis on port 6379
Testing the API
Health Check (Liveness)
Readiness Check (DB + Redis)
"status": "degraded".
Run Tests
Project Structure
Common Tasks
Generate TypeScript Types from Database
Generate TypeScript Types from Database
View Logs
View Logs
Logs are output to console in development with pretty formatting via
pino-pretty.
In production, logs are structured JSON (Pino).Sync OpenAPI Spec to Mintlify Docs
Sync OpenAPI Spec to Mintlify Docs
Next Steps
Quickstart
Make your first authenticated API request
API Reference
Explore all 56 endpoints
