mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-17 16:44:49 -04:00
Add empty NestJS application
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
d6d4f35cf5
commit
e53a8648b4
7 changed files with 2759 additions and 7096 deletions
11
src/main.ts
Normal file
11
src/main.ts
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue