e811049849
Bump react-svg from 2.1.22 to 10.0.23 |
||
---|---|---|
.vscode | ||
docs | ||
public | ||
src | ||
.dockerignore | ||
.env | ||
.gitattributes | ||
.gitignore | ||
Dockerfile | ||
LICENSE | ||
README.md | ||
docker-compose.yml | ||
jsconfig.json | ||
package.json | ||
version.props |
README.md
Azure Industrial IoT OPC UA Device Twin Management
A Web Application written in React.js that uses the Azure Industrial IoT OPC UA device services, OPC Registry and OPC Twin.
Getting started
The Sample User Experience and dependent services are part of our suite of Azure IoT Industrial components.
The easiest way to test the Web UI is against the deployed Azure Industrial IoT services. The services can be deployed via the command line.
Setup Dependencies
-
Install node.js
-
For development, you can use your preferred editor
- Visual Studio Code
- Atom
- Sublime Text
- or other preferred editor
-
Environment variables required to run the Web UI
In order to run the Web UI, the environment variables need to be created at least once. More information on configuring environment variables here.
REACT_APP_PCS_TWIN_REGISTRY_URL
refers to the url of the registry service and defaults to http://localhost:9042REACT_APP_PCS_TWIN_SERVICE_URL
refers to the url of the twin service and defaults to http://localhost:9041
Build, run and test locally
cd ~\azure-iiot-opc-twin-webui\
npm install
npm start
: to compile and run the app
Project Structure
The Web UI contains the following sections under src:
assets
: Contains assets used across the application. These include fonts, icons, images, etc.components
: Contains all the application react components. These in include containers and presentational components.services
: Contains the logic for making ajax calls as well as mapping request/response objects to front end models.store
: Contains all logic related to the redux store.styles
: Contains sass used across the application mixins, theming, variables, etc.utilities
: Contains helper scripts used across the application.
Configuration and Environment variables
The Web UI configuration is stored in app.config.js.
The configuration files in the repository reference some environment variables that need to be created at least once.
Contributing to the solution
Please follow our contribution guildelines and the code style conventions.
References
This project was bootstrapped with Create React App.
You can find a guide to using it here.