Tutorial for Raptorbox - an open-source lightweight IoT platform
- Clone the project.
- Build the project by running
npm installin 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.
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.