feat: graphql + typeorm + config + postgresql

This commit is contained in:
Ivan Li
2021-01-31 13:32:15 +08:00
parent a77e22edd0
commit 7ba5e220d9
8 changed files with 4666 additions and 231 deletions

View File

@ -1,8 +1,10 @@
import { ConfigService } from '@nestjs/config';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
await app.listen(7122);
const configService = app.get(ConfigService);
await app.listen(configService.get<number>('http.port'));
}
bootstrap();