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 35e567bfcd
commit f4caee2ac7
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
7 changed files with 2759 additions and 7096 deletions

9
src/app.module.ts Normal file
View file

@ -0,0 +1,9 @@
import { Module } from '@nestjs/common'
@Module({
imports: [],
controllers: [],
providers: []
})
export class AppModule {
}

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()