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.
-
Start by creating a new developer account at https://appstore.intelligentplant.com/, and fetching your
CLIENT_ID
andCLIENT_SECRET
-
Copy your IntelligentPlant
CLIENT_ID
andCLIENT_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