LeanEngine Node.js getting started.
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Latest commit 697f32a Dec 11, 2017
Permalink
Failed to load latest commit information.
public/stylesheets Revert changes to 886627d Sep 4, 2015
routes 🎨 Many minor improvement (#28) Jan 24, 2017
views fix Revert Sep 13, 2016
.gitignore feat: add nodemen dev dependencies and dev scripts Nov 8, 2016
.leanignore chore: 增加 PORT 环境变量的使用 Nov 24, 2016
README.md
app.js 🎨 Minor style update Aug 1, 2017
cloud.js ⬆️ Upgrade leanengine 2.0 Apr 11, 2017
nodemon.json Add nodemon Oct 17, 2016
package.json
server-cluster.js 🎨 Many minor improvement (#28) Jan 24, 2017
server.js 🎨 Minor style update Aug 1, 2017

README.md

Node.js Getting started

在 LeanCloud 云引擎上使用 Express 的 Node.js 实例项目。

一键部署

Deploy to LeanEngine

本地运行

首先确认本机已经安装 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

相关文档