MCPcopy Create free account
hub / github.com/SAP-samples/cloud-sdk-js / bootstrap

Function bootstrap

samples/cds-sample-application/src/main.ts:5–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import cds = require('@sap/cds');
4
5async function bootstrap() {
6 const app = await NestFactory.create(AppModule);
7 await cds.connect.to('db');
8 await cds.serve('all').in(app.getHttpAdapter().getInstance());
9 await app.listen(process.env.PORT || 3000);
10}
11bootstrap();

Callers 1

main.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected