11 lines
255 B
TypeScript
11 lines
255 B
TypeScript
import { NestFactory } from '@nestjs/core';
|
|
import { AppModule } from './app.module';
|
|
|
|
async function bootstrap() {
|
|
const app = await NestFactory.create(AppModule);
|
|
app.enableCors();
|
|
await app.listen(process.env.PORT ?? 3000);
|
|
}
|
|
|
|
await bootstrap();
|