cloudisk 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -6
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -16,19 +16,29 @@ Samba 文件共享管理平台 — 基于 Node.js + Vue 3 的 Web 管理系统
16
16
 
17
17
  ## 快速开始
18
18
 
19
+ ### npm 安装(推荐)
20
+
19
21
  ```bash
20
- # 全局安装
21
22
  npm install -g cloudisk
22
-
23
- # 初始化配置目录
24
23
  cloudisk init
25
-
26
- # 启动服务
27
24
  cloudisk server start
28
-
29
25
  # 浏览器访问 http://your-ip:9528
30
26
  ```
31
27
 
28
+ ### 源码运行
29
+
30
+ ```bash
31
+ git clone https://git.caiim.com/root/cloudisk-server.git
32
+ cd cloudisk-server
33
+
34
+ # 安装依赖
35
+ cd frontend && npm install && npm run build && cd ..
36
+ cd backend && npm install && npx prisma generate && npx tsc && cd ..
37
+
38
+ # 启动
39
+ cd backend && node dist/index.js
40
+ ```
41
+
32
42
  首次访问进入初始化向导,设置管理员账户和站点标题。
33
43
 
34
44
  ## 命令行
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudisk",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Samba 文件共享管理平台",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -12,7 +12,7 @@
12
12
  "build:backend": "tsc",
13
13
  "build": "npm run build:frontend && npm run build:backend",
14
14
  "start": "node dist/index.js",
15
- "postinstall": "prisma generate",
15
+ "postinstall": "npx prisma generate",
16
16
  "test": "vitest",
17
17
  "db:migrate": "prisma migrate dev",
18
18
  "db:generate": "prisma generate"
@@ -43,6 +43,7 @@
43
43
  "jsonwebtoken": "^9.0.3",
44
44
  "pino": "^10.3.1",
45
45
  "pino-pretty": "^13.1.3",
46
+ "prisma": "^6.19.3",
46
47
  "proper-lockfile": "^4.1.2",
47
48
  "swagger-jsdoc": "^6.2.8",
48
49
  "swagger-ui-express": "^5.0.1",
@@ -55,7 +56,6 @@
55
56
  "@types/proper-lockfile": "^4.1.4",
56
57
  "@types/swagger-jsdoc": "^6.0.4",
57
58
  "@types/swagger-ui-express": "^4.1.8",
58
- "prisma": "^6.19.3",
59
59
  "tsx": "^4.21.0",
60
60
  "typescript": "^6.0.3",
61
61
  "vitest": "^4.1.5"