Tutorial for Raptorbox - an open-source lightweight IoT platform
- Raptor (Check the Getting Started to set it up)
- Nodejs (See Nodejs offical docs for installation)
- Clone the project.
- Build the project by running
npm install
in root folder - Replace username, password here with the one you created with Raptor (mentioned in pre-requisites).
- 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.
- 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.