uniclound创建新项目全流程

发布时间 2023-05-09 10:22:09作者: MvloveYouForever

1、创建 xxxx-node(项目服务端+H5端),此过程中需要创建云空间。

2、创建xxxx-min(小程序端)

3、创建xxxx-admin (后台管理端)

4、更新xxxx-node中的 公共依赖与函数

5、修改xxxx-node  common/uni-config-center/uni-id/config.json

"passwordSecret": "passwordSecret-demo",
  "tokenSecret": "tokenSecret-demo",
"mp-weixin": {
        "tokenExpiresIn": 259200,
        "tokenExpiresThreshold": 86400,
    "oauth": {
      "weixin": {
        "appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
        "appsecret": "微信小程序后台获取的appsecret"
      }
    }
  },

  common 文件夹上右键,安装 uni-cloud-router

      xxxx-node common/uni-config-center 右键 上传

6、在xxxx-admin中更新 公共模块,覆盖  common/uni-config-center/uni-id/config.json

7、登录xxxx-admin 创建超级管理员账号、并隐藏创建超级管理员入口