mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
Add empty NestJS application
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
35e567bfcd
commit
f4caee2ac7
7 changed files with 2759 additions and 7096 deletions
9
src/app.module.ts
Normal file
9
src/app.module.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { Module } from '@nestjs/common'
|
||||
|
||||
@Module({
|
||||
imports: [],
|
||||
controllers: [],
|
||||
providers: []
|
||||
})
|
||||
export class AppModule {
|
||||
}
|
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