Skip to content
/ NodeTS-LeanCloud Public template

Node.js Back-end project scaffold based on Koa, TypeScript & LeanCloud

Notifications You must be signed in to change notification settings

idea2app/NodeTS-LeanCloud

Repository files navigation

NodeTS LeanCloud

基于 TypeScriptKoaSwaggerLeanCloudNode.js 后端项目脚手架

NPM Dependency CI & CD

主要特性

环境变量

变量名 作用
ROOT_ACCOUNT 超级管理员(手机号)
WMA_ID 微信 App ID
WMA_KEY 微信 App Key

本地开发

  1. 注册 LeanCloud 账号

  2. 安装 LeanCloud CLI

  3. 安装 Node.js

  4. git clone https://github.com/idea2app/NodeTS-LeanCloud.git

  5. 在本项目文件夹执行安装命令,并登录 LeanCloud 账号,再切换到本应用后启动

npm install
npx husky install

lean login
lean switch
lean up
  1. 建议安装 NIM 调试扩展

配置 GitHub 仓库自动部署到 LeanCloud

  1. 获取 LeanCloud 自动部署 WebHooks:

LeanCloud > 云引擎 > WEB > 部署 > 自动部署,填写部署分支release,选择需要部署的环境,复制该链接。

  1. 设置 GitHub Actions secrets:

GitHub 仓库 > Settings > Secrets > Actions > 点击 New repository secret 按钮 > 设置 NameLEANCLOUD_WEBHOOKSValue 为上一步获取的链接。

About

Node.js Back-end project scaffold based on Koa, TypeScript & LeanCloud

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published