Skip to content

myDevicesIoT/iotinabox-nodejs-react-example-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iotinabox-nodejs-react-example-app

This example app presents all the companies, locations, and sensors associated with an IoTinABox account.

API Credentials

This example code requires Client API credentials in order to work. Please solicit these credentials by sending an email to [email protected]

Requirements:

Installation:

This app can be installed with git:

git clone [email protected]:myDevicesIoT/iotinabox-react-example-app.git

Required node modules can be installed by running the following command in the repository folder:

npm install

Setup:

Obtain your IoTInABox credentials (ClientID and Client Secret) from your account.

Input your client ID and client Secret in the secrets.json under the example-next folder.

To run the example app, cd to this repository in a terminal and run the command:

npm run dev

After running the script, open a web browser and go to

localhost:3000

It will prompt you to a login page. Click login and sign in using your IoTInABox credentials.

After signing in, you will be able to navigate through your companies, their locations, and the different sensors within those locations.

Releases

No releases published

Packages

No packages published