CAP Service SDK for Node.js
Reference Documentation
As an application developer you'd primarily use the Node.js APIs documented herein to implement domain-specific custom logic along these lines:
- Define services in CDS → see Cookbook > Providing & Consuming Services
- Add service implementations →
cds.Service> Implementations - Register custom event handlers in which →
srv.on/before/after - Read/write data from other services in which →
srv.run+cds.ql - ..., that is from your primary database →
cds.DatabaseService - ..., that is from other connected services →
cds.RemoteService - Emit and handle asynchronous events →
cds.MessagingService
All the rest is largely handled by the CAP runtime framework behind the scenes. This especially applies to bootstrapping the cds.server and the generic features provided through cds.ApplicationService.