2lemetry 中文文档教程
node-2lemetry
这组库旨在帮助引导 快速高效地构建在 2lemetry 平台 之上的网络应用程序。 之所以选择 Node.js,是因为它的开发速度和单语言格式。
评论和问题可以通过 Issues
或 help.m2m.io 提交。
Pre-reqs
就这样吧。
- Node.js, version 0.10.5.
- Ruby
- Terminal Notifier, installed as:
sudo gem install terminal-notifier
.
Usage
- Node.js.
从 NPM
sudo npm install -g 2lemetry
- Client.
安装工具包: 从 bower 安装工具包:
bower install 2lemetry
Node.js Usage
2lemetry dev setup
这将:
- Clone the
node-2lemetry
repository.
Develop
cd node-2lemetry
npm install
Build API Documentation
cd api
2lemetry swaggerme
这将:
- Generate the v2 JavaScript interface from
swagger
docs.
Run SocketMQ
- Runs the server as
development
.
cd socketmq
2lemetry run --port=3001
这将:
- Run the SocketMQ server.
Angular Skeleton
2lemetry angularme --name="My App"
cd myapp
- Runs the app server as
development
.
2lemetry run --port=3001
这将:
- Generate the 2lemetry app template.
- Compile CoffeeScript and Jade.
- Alert via terminal-notifier.
- Browser refresh.
node-2lemetry
This set of libraries aims to help bootstrap web applications built on top of the 2lemetry platform quickly and efficiently. Node.js was selected because of its development speed and monolingual format.
Comments and questions can be submitted via Issues
or at help.m2m.io.
Pre-reqs
Just make it so.
- Node.js, version 0.10.5.
- Ruby
- Terminal Notifier, installed as:
sudo gem install terminal-notifier
.
Usage
- Node.js.
Install the toolkit from NPM:
sudo npm install -g 2lemetry
- Client.
Install the toolkit from bower:
bower install 2lemetry
Node.js Usage
2lemetry dev setup
This will:
- Clone the
node-2lemetry
repository.
Develop
cd node-2lemetry
npm install
Build API Documentation
cd api
2lemetry swaggerme
This will:
- Generate the v2 JavaScript interface from
swagger
docs.
Run SocketMQ
- Runs the server as
development
.
cd socketmq
2lemetry run --port=3001
This will:
- Run the SocketMQ server.
Angular Skeleton
2lemetry angularme --name="My App"
cd myapp
- Runs the app server as
development
.
2lemetry run --port=3001
This will:
- Generate the 2lemetry app template.
- Compile CoffeeScript and Jade.
- Alert via terminal-notifier.
- Browser refresh.