Skip to content

Preparing Demo Setup

Servio Palacios edited this page May 13, 2020 · 10 revisions

Demo Setup for Trellis++

Use the Broker and Regulator in the mobile layout.

 ~/repos/trellisfw/demo 
   git clone https://github.com/trellisfw/trellisfw-broker.git
Cloning into 'trellisfw-broker'...
remote: Enumerating objects: 316, done.
remote: Counting objects: 100% (316/316), done.
remote: Compressing objects: 100% (135/135), done.
remote: Total 881 (delta 194), reused 283 (delta 176), pack-reused 565
Receiving objects: 100% (881/881), 513.23 KiB | 4.07 MiB/s, done.
Resolving deltas: 100% (555/555), done.
  ~/repos/trellisfw/demo 
   cd trellisfw-broker                         29.01.20    13:45:38 

  ~/repos/trellisfw/demo/trellisfw-broker     master 
   npm install                                 29.01.20    13:45:42 
npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated [email protected]: We're super 😸  excited that you're trying to use ES2017+ syntax, but instead of making more yearly presets 😭 , Babel now has a better preset that we recommend you use instead: npm install babel-preset-env --save-dev. preset-env without options will compile ES2015+ down to ES5 just like using all the presets together and thus is more future proof. It also allows you to target specific browsers so that Babel can do less work and you can ship native ES2015+ to user 😎 ! We are also in the process of releasing v7, so please give http://babeljs.io/blog/2017/09/12/planning-for-7.0 a read and help test it out in beta! Thanks so much for using Babel 🙏, please give us a follow on Twitter @babeljs for news on Babel, join slack.babeljs.io for discussion/development and help support the project at opencollective.com/babel
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated [email protected]: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated [email protected]: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
...

added 2139 packages from 833 contributors and audited 933340 packages in 55.87s
found 20 vulnerabilities (4 low, 14 moderate, 2 high)
  run `npm audit fix` to fix them, or `npm audit` for details

Start the broker

~/repos/trellisfw/demo/trellisfw-broker npm run start

Uploading demo data

  1. First, connect to the oada/trellis backend.

  2. Then click Demo data in the Main Menu. Wait for the app to settle (watch the progress bar)

  1. Then click Demo private data in the Main Menu. Wait for the app to settle (watch the progress bar)

3.1 Click Filtered private data

  1. Refresh the App.

  2. Install an OSC from the trusted repo.

  1. Refresh the App then Generate a PAC from the recently installed OSC. Follow the steps in the OSC menu.

  1. Refresh the app to reflect the changes.

  2. Send PAC to the Regulator.

  1. Clone the Regulator App. Npm install packages.
   git clone https://github.com/trellisfw/trellisfw-regulator.git
Cloning into 'trellisfw-regulator'...
remote: Enumerating objects: 228, done.
remote: Counting objects: 100% (228/228), done.
remote: Compressing objects: 100% (151/151), done.
remote: Total 228 (delta 112), reused 182 (delta 69), pack-reused 0
Receiving objects: 100% (228/228), 223.79 KiB | 4.22 MiB/s, done.
Resolving deltas: 100% (112/112), done.
  cd trellisfw-regulator                          29.01.20    14:39:30 

  ~/repos/trellisfw/demo/trellisfw-regulator     master  v0.2.0-alpha 
   npm install                                     29.01.20    14:39:36 
npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1

...

> [email protected] postinstall /Users/maverickzhn/repos/trellisfw/demo/trellisfw-regulator/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"


> [email protected] postinstall /Users/maverickzhn/repos/trellisfw/demo/trellisfw-regulator/node_modules/react-app-polyfill/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"


> [email protected] postinstall /Users/maverickzhn/repos/trellisfw/demo/trellisfw-regulator/node_modules/level
> opencollective-postinstall || exit 0

Thank you for using level!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/level/donate


> [email protected] postinstall /Users/maverickzhn/repos/trellisfw/demo/trellisfw-regulator/node_modules/styled-components
> node ./scripts/postinstall.js || exit 0


added 2222 packages from 832 contributors and audited 942223 packages in 60.177s
found 21 vulnerabilities (5 low, 14 moderate, 2 high)
  run `npm audit fix` to fix them, or `npm audit` for details
npm run start

  1. Reset cache, refresh all apps. At this point, all necessary endpoints (resources) in the backend are created. The app is ready for demo and watches are in place.
Clone this wiki locally