NestJS
Integrate Chimpbase into a NestJS application.
Chimpbase integrates with NestJS by wrapping your action logic in injectable services and wiring them into the Chimpbase registration system.
Setup
Define services
Wrap your action handlers in NestJS injectable services:
Create the NestJS module
Wire into Chimpbase
Bootstrap NestJS, pull out your services, and register them as Chimpbase actions:
When to use NestJS
NestJS is useful when you need its dependency injection system for organising large codebases. For simpler projects, plain functions with defineChimpbaseApp are often enough.