@k3000/s1 0.3.1 → 0.3.3

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.
package/README.md CHANGED
@@ -1,2 +1,10 @@
1
1
  以UDP微服务的形式构建的平台
2
2
 
3
+ 1、全局安装 npm i -g @k3000/s1
4
+ 2、项目预览需要启动的服务:
5
+ npm run admin #管理后台服务
6
+ npm run jwt #用户身份校验
7
+ npm run store1 #存储服务
8
+ npm run proxy #转发服务
9
+ 3、发布 npm run build,打包后存入bin文件夹
10
+ 4、部署 node pm2.mjs
package/common/config.mjs CHANGED
@@ -32,9 +32,9 @@ export const serverDir = rootPath
32
32
  export const staticDir = rootPath + '/static'
33
33
 
34
34
  export const mysql = {
35
- host: 'qshfu.com',
35
+ host: 'localhost',
36
36
  port: '3306',
37
- user: 'admin',
38
- database: 'wms',
39
- password: 'QSF0099++mysql',
37
+ user: 'user',
38
+ database: 'name',
39
+ password: '******',
40
40
  }
package/files/pm2.mjs CHANGED
@@ -1,6 +1,8 @@
1
1
  import {pm2} from "./common/pm2.mjs";
2
2
 
3
- pm2.exec('node --experimental-vm-modules admin.mjs', false)
4
- pm2.exec('node --experimental-vm-modules jwt.mjs', false)
5
- pm2.exec('node --experimental-vm-modules store1.mjs', false)
6
- pm2.exec('node --experimental-vm-modules proxy.mjs', false)
3
+ pm2.exec('npm i -g pm2')
4
+
5
+ pm2.add('管理后台服务', 'admin.mjs', '--node-args="--experimental-vm-modules"')
6
+ pm2.add('用户身份验证服务', 'jwt.mjs', '--node-args="--experimental-vm-modules"')
7
+ pm2.add('数据存储服务', 'store1.mjs', '--node-args="--experimental-vm-modules"')
8
+ pm2.add('请求转发服务', 'proxy.mjs', '--node-args="--experimental-vm-modules"')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k3000/s1",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "sync": "npm link",