Skip to content

Enttoi/enttoi-ui-web

Repository files navigation

Enttoi Web Client

Build Status

Aurelia based dashboard for displaying realtime state of clients and sensors. The state retreived and pushed from Enttoi API.

Running in dev

  1. Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
  2. From the project folder, execute the following command:
npm install

if you building on Windows and getting "not found Microsoft.Cpp.Default.props" message, run: SET VCTargetsPath="C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140" 3. Ensure that Gulp is installed. If you need to install it, use the following command:

npm install -g gulp
  1. Ensure that jspm is installed. If you need to install it, use the following command:
npm install -g jspm
  1. Install the client-side dependencies with jspm:
jspm install -y

if you getting "GitHub rate limit reached" message, generate token here and run: jspm registry config github

  1. To run the app, execute the following command:
gulp watch
  1. Browse to http://localhost:9000

Deploying

  1. Build & bundle:
gulp bundle
  1. Deploy:
  • /index.html
  • /media
  • /dist
  • jspm_packages/system.js

Alternatively /dist can be served from CDN. Add environment variable ENTTOI_CDN_ENDPOINT which points to CDN and bundle using:

gulp bundle-cdn