2024-01-30 14:19:45 +00:00
|
|
|
import { NestFactory } from '@nestjs/core';
|
|
|
|
import { AppModule } from './app.module';
|
|
|
|
|
|
|
|
async function bootstrap() {
|
2024-02-06 13:01:58 +00:00
|
|
|
const PORT = process.env.PORT || 3000;
|
2024-01-30 14:19:45 +00:00
|
|
|
const app = await NestFactory.create(AppModule);
|
2024-02-06 13:01:58 +00:00
|
|
|
await app.listen(PORT);
|
|
|
|
console.log(`server is running at: http://127.0.0.1:${PORT}`);
|
2024-01-30 14:19:45 +00:00
|
|
|
}
|
2024-02-06 13:01:58 +00:00
|
|
|
|
2024-01-30 14:19:45 +00:00
|
|
|
bootstrap();
|