Prerequisites
- Node.js >= 20.16.0
- Docker and Docker Compose
- npm (bundled with Node.js)
Setup
Configure environment
Copy the example environment file and update values as needed:See Configuration for details on all environment variables.
Start infrastructure services
Launch PostgreSQL, Redis, and Elasticsearch via Docker Compose:This starts:
- PostgreSQL on port
54321 - Redis on port
63791 - Elasticsearch on port
9200
Run database migrations
Migrations run automatically when the Docker migrator service starts. To run manually:
Available Commands
| Command | Description |
|---|---|
npm run start:dev | Start in watch mode |
npm run start:debug | Start with debugger on port 9229 |
npm run build:merchant-api | Build for production |
npm test | Run all tests |
npm run test:watch | Run tests in watch mode |
npm run test:coverage-report | Generate coverage report |
npm run test:e2e | Run end-to-end tests |
npm run dev | Start Docker Compose environment |
npm run dev:build | Rebuild Docker containers |