Skip to content

Commit d6ed1f1

Browse files
committed
feat: app dump
1 parent b4c22ba commit d6ed1f1

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.env.example

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
DB_PORT=""
2+
DB_HOST=""
3+
DB_PASSWORD=""
4+
DB_USERNAME=""
5+
DB_NAME=""
6+
7+
APP_PORT=""
8+
9+
JWT_SECRET=""

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
uses postgres

src/main.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import dotenv from 'dotenv';
22
dotenv.config();
33

4+
import env from './common/config';
5+
46
import { ValidationPipe } from '@nestjs/common';
57
import { NestFactory } from '@nestjs/core';
68
import { AppModule } from './app.module';
79

810
async function bootstrap() {
911
const app = await NestFactory.create(AppModule);
1012
app.useGlobalPipes(new ValidationPipe());
11-
await app.listen(3000);
13+
await app.listen(env.APP_PORT);
1214
}
1315
bootstrap();

0 commit comments

Comments
 (0)