Skip to content

Commit 5978933

Browse files
author
zuohuadong
committed
add frist
1 parent 7494549 commit 5978933

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

11/firststeps.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ import { AppModule } from './app.module';
150150

151151
async function bootstrap() {
152152
const app = await NestFactory.create(AppModule);
153-
await app.listen(3000);
153+
await app.listen(process.env.PORT ?? 3000);
154154
}
155155
bootstrap();
156156
```
@@ -208,7 +208,15 @@ $ npm run start:dev
208208

209209
对于不需要IDE的无头环境(如持续集成、Git钩子等),Nest项目自带了开箱即用的 `npm` 脚本。
210210

211-
**[学习资料](https://docs.nestjs.cn/10/awesome?id=%e7%9b%b8%e5%85%b3%e8%b5%84%e6%ba%90)**
211+
```
212+
213+
$ npm run lint
214+
215+
# 或者你使用了 prettier
216+
$ npm run format
217+
```
218+
219+
**[学习资料](https://docs.nestjs.cn/11/awesome?id=%e7%9b%b8%e5%85%b3%e8%b5%84%e6%ba%90)**
212220

213221
### 支持我们
214222

0 commit comments

Comments
 (0)