Skip to content

Instantly share code, notes, and snippets.

@chnirt
Last active June 19, 2019 07:16
Show Gist options
  • Save chnirt/c2b28fc17bf9c8451a16ae54a75d4bdc to your computer and use it in GitHub Desktop.
Save chnirt/c2b28fc17bf9c8451a16ae54a75d4bdc to your computer and use it in GitHub Desktop.
NestJs
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