Skip to content

Latest commit

 

History

History
24 lines (12 loc) · 1.23 KB

README.md

File metadata and controls

24 lines (12 loc) · 1.23 KB

IntelligentPlant React Demo

This is an application built to act as a starting point for Intelligent Plant applications built with React.

It uses the Intelligent Plant API Module to fetch user data, datasources and tags. Real-time data is handled via SignalR.

Security wise, this app is not ready for production unless the following concerns are tackled: 1. Keep authorization token somewhere other than local storage 2. Use the Proof Key for Code Exchange for oAuth with passing of the state and a unique value.

The auth token is stored in local storage, which to be moved elsewhere for production due to security concerns.

Installation:

  • Start by creating a new developer account at https://appstore.intelligentplant.com/, and fetching your CLIENT_ID and CLIENT_SECRET

  • Copy your IntelligentPlant CLIENT_ID and CLIENT_SECRET to .env.example and rename it to .env

  • Add http://localhost:3000/receive to your Authorized Redirect Urls in your IntelligentPlant application

  • npm install

  • npm start

Screenshot