Building a web application

To be able to work with GE's Predix web components, we need to build a web application.

To speed up creating an application, you can copy the source code from this GitHub repository: https://github.com/Altoros/iot-book/tree/master/ui.
You can skip the first four items in the following sequence if you have already created a ui application as described in the Developing your first asset model with GE's Predix section.

To build the required web app, follow these steps:

  1. Create the ui folder:
mkdir ui
  1. Create the index.html file. It should be empty.
  2. Create manifest.yml and paste the following code into it:
---applications:- name: ui  memory: 64M  buildpack: staticfile_buildpack  random-route: true
  1. Deploy the application ...

Get Industrial Internet Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.