feat: add transit microservice and supervisor dashboard
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { AppModule } from './app.module';
|
||||
import { ValidationPipe } from '@nestjs/common';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
const cfg = app.get(ConfigService);
|
||||
|
||||
app.useGlobalPipes(new ValidationPipe({ whitelist: true, transform: true }));
|
||||
app.enableCors();
|
||||
|
||||
// Start the standalone transit API
|
||||
const port = cfg.get<number>('PORT') || 4020;
|
||||
await app.listen(port);
|
||||
console.log(`Transit Microservice running on port ${port}`);
|
||||
}
|
||||
bootstrap();
|
||||
Reference in New Issue
Block a user