chengjie 6 mēneši atpakaļ
vecāks
revīzija
980446eda9
3 mainītis faili ar 1417 papildinājumiem un 654 dzēšanām
  1. 19 0
      .vscode/launch.json
  2. 4 12
      README.md
  3. 1394 642
      package-lock.json

+ 19 - 0
.vscode/launch.json

@@ -0,0 +1,19 @@
1
+{
2
+    // 使用 IntelliSense 了解相关属性。 
3
+    // 悬停以查看现有属性的描述。
4
+    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5
+    "version": "0.2.0",
6
+    "configurations": [
7
+
8
+        {
9
+            "type": "node",
10
+            "request": "launch",
11
+            "name": "app.js",
12
+            "skipFiles": [
13
+                "<node_internals>/**"
14
+            ],
15
+            "program": "${workspaceFolder}/src/app.js",
16
+            "runtimeVersion": "24.1.0"
17
+        }
18
+    ]
19
+}

+ 4 - 12
README.md

@@ -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
 ```

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1394 - 642
package-lock.json