BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

How we could potentially have nestjs as runtime for SAP CAP

A proof-of-concept that swaps @sap/cds's ApplicationService and ODataAdapter dispatch for NestJS controllers, providers and interceptors, built by the author to learn NestJS rather than to ship a runtime. It works through CAP's run-dispatch-handle loop and AsyncLocalStorage-based transaction boundaries in detail before mapping them onto NestJS dependency injection and interceptors — one community answer to the controller-service-repository layering question core TypeScript support leaves open. The author's own conclusion is that the result reimplements CAP Java in Node.js, and they do not plan to take it further.

Where it sits

Explains
TypeScript patternsCAPTypeScript patternscapabilityHow an application is arranged once it is written in TypeScript — where handlers live, what registers them, and how business logic is kept apart from persistence. Distinct from typing, which is about the model being visible to the compiler; this is about the shape of the code around it.
Since then
TypeScript patterns changed in @sap/cds-dk, December 2024, 2024-12-01
Source
reachable

Who is behind it

alex_myakinkiiauthor

Before you read it

ApplicabilityVersion driftcds 8, line ended

The piece names the version it was written against, and that line has since been crossed by a breaking one. The steps may need translating; nothing here says which.

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
2,538

More on this9

Group by9 of 9 pieces
Piece, what it offersStill applies
Also explainingTypeScript patterns9
How to use Cloud SDK for AI in an existing CAP NodeJS Project in CommonJS
SAP Community, Jacky_Liu1
nothing recorded
Quick Implementation of DI/DI Container on SAP CAP: Node.js Hands-on Part
SAP Community, UmezukiThe reasoningRunnable code
nothing recorded
Use TypeScript with the SAP Cloud Application Programming Model
SAP Community, KevinRThe reasoningA recipeRunnable code
nothing recorded
SAP CAP: Controller - Service - Repository architecture
SAP Community, Daniel DragoleaThe reasoningRunnable code
New majors
CDS-TS-Repository: Simplify SAP CAP Entity persistance with BaseRepository
SAP Community, Daniel DragoleaThe reasoningRunnable code
New majors
CDS-TS-Dispatcher: Simplifying SAP CAP TypeScript Development
SAP Community, Daniel DragoleaThe reasoningRunnable code
New majors
CAP Typescript + Fiori Typescript + live reload Initial app setup
SAP Community, Christophe_SWThe reasoningRunnable code
Core changed
Full Stack TypeScript App for Cloud Foundry - Sample Repository
SAP Community, former_member66The reasoningA recipeRunnable code
Core changed
Taking CAP to the next level - with TypeScript
SAP Community, mrbandlerThe reasoningRunnable code
Gone quiet

Details

Graph3 edges
POINTS OUT →
explainsTypeScript patternscapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Community
Source
Type
blog
Published on
Host
community.sap.com
Discovered via
First seen
History1
  • Entered the atlasDiscovered via SAP Community.
For your agent
Ref
content:how-we-could-potentially-have-nestjs-as-runtime-for-sap-cap
JSON
/content/how-we-could-potentially-have-nestjs-as-runtime-for-sap-cap.json
MCP
Connecting an agent