Skip to content

Instantly share code, notes, and snippets.

@madebydin
Created May 23, 2020 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madebydin/9233e66a32fe6e63c6f1b5f21e5f24af to your computer and use it in GitHub Desktop.
Save madebydin/9233e66a32fe6e63c6f1b5f21e5f24af to your computer and use it in GitHub Desktop.
nest js
import { NestFactory } from '@nestjs/core';
import {
FastifyAdapter,
NestFastifyApplication,
} from '@nestjs/platform-fastify';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create<NestFastifyApplication>(
AppModule,
new FastifyAdapter()
);
await app.listen(3000);
}
bootstrap();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment