Created
May 23, 2020 11:34
-
-
Save madebydin/9233e66a32fe6e63c6f1b5f21e5f24af to your computer and use it in GitHub Desktop.
nest js
This file contains 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 { | |
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