chore: scaffold NestJS sidecar with config, CORS, and dependency setup

This commit is contained in:
2026-03-17 09:02:15 +05:30
commit a3172140b0
23 changed files with 10881 additions and 0 deletions

18
src/main.ts Normal file
View File

@@ -0,0 +1,18 @@
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { ConfigService } from '@nestjs/config';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const config = app.get(ConfigService);
app.enableCors({
origin: config.get('corsOrigin'),
credentials: true,
});
const port = config.get('port');
await app.listen(port);
console.log(`Helix Engage Server running on port ${port}`);
}
bootstrap();