hedgedoc/src/main.ts
David Mehren f4caee2ac7
Add empty NestJS application
Signed-off-by: David Mehren <git@herrmehren.de>
2020-08-20 19:43:06 +02:00

11 lines
372 B
TypeScript

import { ValidationPipe } from '@nestjs/common'
import { NestFactory } from '@nestjs/core'
import { AppModule } from './app.module'
async function bootstrap () {
const app = await NestFactory.create(AppModule)
app.useGlobalPipes(new ValidationPipe({ forbidUnknownValues: true, skipMissingProperties: false, transform: true }))
await app.listen(3000)
}
bootstrap()