Skip to content

Commit f3fc69e

Browse files
committed
docs: fix backend dev instructions in README
- Change npx nx to pnpm nx - Add local.config.js copy step before starting services
1 parent 150a7d3 commit f3fc69e

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,12 @@ You can still use Docker for MongoDB/Redis, or configure your own services in th
201201
```bash
202202
cd project/aitoearn-backend
203203
pnpm install
204-
npx nx serve aitoearn-ai
204+
# Copy config files for local development
205+
cp apps/aitoearn-ai/config/config.js apps/aitoearn-ai/config/local.config.js
206+
cp apps/aitoearn-server/config/config.js apps/aitoearn-server/config/local.config.js
207+
pnpm nx serve aitoearn-ai
205208
# in another terminal
206-
npx nx serve aitoearn-server
209+
pnpm nx serve aitoearn-server
207210
```
208211

209212
#### 2. Start the frontend `aitoearn-web`

README_CN.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,12 @@ Docker 成功启动后,您可以通过以下地址访问服务:
186186
```bash
187187
cd project/aitoearn-backend
188188
pnpm install
189-
npx nx serve aitoearn-ai
189+
# 复制配置文件用于本地开发
190+
cp apps/aitoearn-ai/config/config.js apps/aitoearn-ai/config/local.config.js
191+
cp apps/aitoearn-server/config/config.js apps/aitoearn-server/config/local.config.js
192+
pnpm nx serve aitoearn-ai
190193
# 在另一个终端
191-
npx nx serve aitoearn-server
194+
pnpm nx serve aitoearn-server
192195
```
193196

194197
#### 2. 启动前端 `aitoearn-web`

0 commit comments

Comments
 (0)