Skip to content

isabella232/azure-iiot-opc-twin-webui

 
 

Repository files navigation

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

  1. Install node.js

  2. For development, you can use your preferred editor

  3. 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:9042
    • REACT_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.

Core technologies overview

About

Azure IoT OPC Twin Sample Web UI

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 62.5%
  • SCSS 36.4%
  • Other 1.1%