Raptor tutorial nodejs for Raptor
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
config.default.json
index.js
package-lock.json
package.json

README.md

Raptor-tutorial-js

Tutorial for Raptorbox - an open-source lightweight IoT platform

Pre-requisites

  1. Raptor (Check the Getting Started to set it up)
  2. Nodejs (See Nodejs offical docs for installation)

Installation

  1. Clone the project.
  2. Build the project by running npm install in root folder
  3. Replace username, password here with the one you created with Raptor (mentioned in pre-requisites).
  4. Run Raptor in case of local instance, otherwise change the url in the above mentioned file to the one where your raptor instance is running.
  5. Run node index.js. It includes some simple functionality like login, creating device, stream and channel, updating them, pushing, pulling and droping data (records) of device etc. The id of the device created here will be used later for running the client. It also includes subscription of device data and events.