Last active
June 19, 2019 07:16
-
-
Save chnirt/c2b28fc17bf9c8451a16ae54a75d4bdc to your computer and use it in GitHub Desktop.
NestJs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NestFactory } from '@nestjs/core'; | |
import { AppModule } from './app.module'; | |
import { Logger } from '@nestjs/common'; | |
const port = process.env.PORT || 3000; | |
async function bootstrap() { | |
const app = await NestFactory.create(AppModule); | |
await app.listen(port); | |
Logger.log(`🚀 Server running on http://localhost:${port}`, 'Bootstrap'); | |
} | |
bootstrap(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment