Your First App
Let's add a NestJS service and see it running.
Add a service
Run the command and follow the interactive prompts:
The CLI walks you through each choice:
- App type - SPA, Next.js, or NestJS
- Name - Your service name (NestJS names must end with
-service) - Database - Whether to include Prisma (for NestJS services)
You can also pass flags directly to skip the prompts:
The service is created at apps/hello-service/ with:
- NestJS application scaffold
- OpenAPI decorators configured
- Database connection ready
- Health check endpoint
Sync and run
After adding a service, sync the configuration:
This regenerates:
- Kong gateway routes for your new service
- Docker Compose configuration
- Secrets (if needed)
Now start everything:
Test it
Your service is now available through the Kong gateway. Routes use the short name (without -service):
Add an endpoint
Open apps/hello-service/src/app.controller.ts and add:
With hot reload, your endpoint is immediately available:
View API docs
OpenAPI documentation is auto-generated. Each service serves Swagger UI on its own port:
The port depends on your service. Check the console output when running npm run dev to see which port each service uses.