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 f11bf7a212 Add nodemon 8 years ago
public/stylesheets Revert changes to 886627d 9 years ago
routes 使用 Promise 接口调用 JavaScript SDK 8 years ago
views fix Revert 8 years ago
.gitignore fix Revert 8 years ago
.jshintrc add default jshintrc 9 years ago
README.md 更新一键部署图片 8 years ago
app.js fix: ignore timeout event in websocket 8 years ago
cloud.js Revert changes to 886627d 9 years ago
nodemon.json Add nodemon 8 years ago
package.json Add nodemon 8 years ago
server.js fix Revert 8 years ago

README.md

Node.js Getting started

一个简单的使用 Express 4 的 Node.js 应用。 可以运行在 LeanEngine Node.js 运行时环境。

一键部署

Deploy to LeanEngine

本地运行

首先确认本机已经安装 Node.js 运行环境和 LeanCloud 命令行工具,然后执行下列指令:

$ git clone git@github.com:leancloud/node-js-getting-started.git
$ cd node-js-getting-started

安装依赖:

npm install

关联应用:

lean app add origin <appId>

这里的 appId 填上你在 LeanCloud 上创建的某一应用的 appId 即可。origin 则有点像 Git 里的 remote 名称。

启动项目:

lean up

应用即可启动运行:localhost:3000

部署到 LeanEngine

部署到预备环境(若无预备环境则直接部署到生产环境):

lean deploy

将预备环境的代码发布到生产环境:

lean publish

相关文档