|
|
@@ -30,8 +30,8 @@ nvm use
|
|
30
|
30
|
|
|
31
|
31
|
```bash
|
|
32
|
32
|
# 克隆仓库
|
|
33
|
|
-git clone https://github.com/yourusername/kylx365_2025.git
|
|
34
|
|
-cd kylx365_2025
|
|
|
33
|
+git clone http://81.68.248.121:3000/kylx365/miaoguo_system_server.git
|
|
|
34
|
+cd miaoguo_system_server
|
|
35
|
35
|
|
|
36
|
36
|
# 确保使用正确的 Node.js 版本
|
|
37
|
37
|
nvm use
|
|
|
@@ -82,16 +82,8 @@ npm run start
|
|
82
|
82
|
|
|
83
|
83
|
## 示例请求
|
|
84
|
84
|
|
|
85
|
|
-### 创建用户
|
|
|
85
|
+### 查看API是否能运行
|
|
86
|
86
|
|
|
87
|
87
|
```bash
|
|
88
|
|
-curl -X POST http://localhost:3000/api/users \
|
|
89
|
|
- -H "Content-Type: application/json" \
|
|
90
|
|
- -d '{"name": "新用户", "email": "new@example.com"}'
|
|
91
|
|
-```
|
|
92
|
|
-
|
|
93
|
|
-### 获取所有用户
|
|
94
|
|
-
|
|
95
|
|
-```bash
|
|
96
|
|
-curl http://localhost:3000/api/users
|
|
|
88
|
+curl http://localhost:3000/api/Ping
|
|
97
|
89
|
```
|