GithubHelp home page GithubHelp logo

isabella232 / azure-iiot-opc-twin-webui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure/azure-iiot-opc-twin-webui

0.0 0.0 0.0 523 KB

Azure IoT OPC Twin Sample Web UI

License: MIT License

Dockerfile 0.22% HTML 0.85% JavaScript 62.43% Shell 0.08% SCSS 36.42%

azure-iiot-opc-twin-webui's Introduction

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

azure-iiot-opc-twin-webui's People

Contributors

barnstee avatar dacolgit avatar dependabot[bot] avatar marcschier avatar microsoftopensource avatar msftgits avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.