Skip to content

使用express和leanCloud 搭建的微信小程序后台服务

License

Notifications You must be signed in to change notification settings

tjlizz/express-leancloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

准备开始

 $ git clone https://github.com/lizeze/express-leancloud.git

下载完成之后进入项目创建以下几个文件

$ cd express-leancloud
  • redis.json
{
    "host": "192.168.11.57",
    "port": 6379,
    "passWord": "123456"

}
  • jwt.json
{
 "expiresIn": "1h",
 "privateKey": "xxxx"
}
  • leanCloud.json
{
  "appId": "xxx",
  "appKey": "xxx",
  "serverURL": "xxx"
}
  • webChat.json
{
  "appId": "xxx",
  "secretKey": "xxx"
}
  • api.json
{
  "socketUrl": "xxx",
  "defaultUserId": "123"  
}

开发环境填写defaultUserId可跳过jwt校验,直接访问api, 正式环境一定要修改成 ""

最后使用npm或者yarm 安装项目依赖

$ npm i 
$ npm start

线上小程序

服务器到期了,还未续费,暂时无法访问

About

使用express和leanCloud 搭建的微信小程序后台服务

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published