2025-03-26 14:39:56 -06:00
|
|
|
import { NestFactory } from '@nestjs/core';
|
|
|
|
|
import { AppModule } from './app.module';
|
2025-04-02 09:15:14 -06:00
|
|
|
import 'dotenv/config';
|
|
|
|
|
import { DocsModule } from './docs/docs.module';
|
2025-03-26 14:39:56 -06:00
|
|
|
|
|
|
|
|
async function bootstrap() {
|
|
|
|
|
const app = await NestFactory.create(AppModule);
|
2025-04-02 09:15:14 -06:00
|
|
|
//await app.listen(process.env.PORT ?? 3000);
|
|
|
|
|
|
|
|
|
|
DocsModule.setupSwagger(app);
|
|
|
|
|
|
|
|
|
|
await app.listen(3000);
|
|
|
|
|
console.log('API en ejecución en http://localhost:3000');
|
|
|
|
|
console.log('Swagger disponible en http://localhost:3000/api-docs');
|
2025-03-26 14:39:56 -06:00
|
|
|
}
|
|
|
|
|
bootstrap();
|