import { NestFactory } from '@nestjs/core' import { AppModule } from './app.module' import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger' async function bootstrap() { const app = await NestFactory.create(AppModule) const config = new DocumentBuilder() .setTitle('Traintrape-moi') .setDescription('API permettant de stocker les données de Traintrape-moi') .setVersion('1.0') .build() const document = SwaggerModule.createDocument(app, config) SwaggerModule.setup('', app, document); await app.listen(process.env.PORT ?? 3000) } bootstrap()