livingyang / leancloud-rpc

leancloud rpc project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

leancloud-rpc

leancloud rpc project.

How to test

  • cd leancloud
  • lean up
  • npm test

How to use

  1. They are three titles at leancloud/src/*.ts file Header:
    • FOR BOTH
    • FOR CLIENT
    • FOR SERVER
  2. Copy FOR BOTH & FOR SERVER to leancloud project.
  3. Copy FOR BOTH & FOR CLIENT to client project.

一键部署

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

相关文档

About

leancloud rpc project.

License:MIT License


Languages

Language:TypeScript 53.0%Language:JavaScript 41.5%Language:HTML 5.0%Language:CSS 0.5%