mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-04-11 18:08:16 +00:00
19 lines
504 B
TypeScript
19 lines
504 B
TypeScript
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();
|