Add empty NestJS application

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-07-21 21:24:56 +02:00
parent d6d4f35cf5
commit e53a8648b4
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
7 changed files with 2759 additions and 7096 deletions

11
src/main.ts Normal file
View file

@ -0,0 +1,11 @@
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()