udmi

UDMI / UDMIF / Web UI / Readme

UDMI Device Management Console UI

The project uses Angular and it’s CLI. The CLI depends on Node and npm already being installed on your machine. If you do not already have Node installed, install Node which comes with npm.

Prerequisite


A Google account that can login to web application at https://web.staging.udmi.buildingsiot.com/login. This will be used to retrieve an idToken.

Config


Copy the env.template.js file in the /src folder and rename the copy to env.js. Populate with the appropriate values from the notebook.

cp src/env.template.js src/.env.js

Running the Project


  1. Install the Angular CLI globally on your machine;
    npm install -g @angular/cli
    
  2. Install the project dependencies;
    npm install
    
  3. Run the project, which will bind to port 4200;
    npm start
    
  4. Navigate to http://localhost:4200/ to see the app. The app will automatically reload if you change any of the source files.

Adding new envs


When adding a new env variable, it will need to be added in a few places.

Notes