You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jysperm
a94072fe1b
|
7 years ago | |
---|---|---|
public/stylesheets | 9 years ago | |
routes | 7 years ago | |
views | 8 years ago | |
.gitignore | 8 years ago | |
.leanignore | 8 years ago | |
README.md | 7 years ago | |
app.js | 7 years ago | |
cloud.js | 7 years ago | |
nodemon.json | 8 years ago | |
package.json | 7 years ago | |
server-cluster.js | 7 years ago | |
server.js | 7 years ago |
README.md
Node.js Getting started
在 LeanCloud 云引擎上使用 Express 的 Node.js 实例项目。
一键部署
本地运行
首先确认本机已经安装 Node.js 运行环境和 LeanCloud 命令行工具,然后执行下列指令:
$ git clone https://github.com/leancloud/node-js-getting-started.git
$ cd node-js-getting-started
安装依赖:
npm install
登录并关联应用:
lean login
lean switch
启动项目:
lean up
之后你就可以在 localhost:3000 访问到你的应用了。
部署到 LeanEngine
部署到预备环境(若无预备环境则直接部署到生产环境):
lean deploy