We are building a Data Ownership Framework for the Energy Sector and beyond. Created and accelerated during the Blockchaingers Hackathon 2018.
The energy sector is a highly regulated space that has clearly defined relationships between entities with respect to how data is handled. We have created a framework that is tailored to the energy sector's particularities in the Netherlands. It's general assumptions generalize to other countries and industries. A slideshow detailing the solution will be added soon.
...
- NodeJS v8.9.0 (LTS)
- npm v5.8.0
- To Install fabric and its cli tools locally on your system run the following script (from the root from the project folder!)::
bin/install.sh
bin/start-fabric.sh
bin/create-admin-peer-card.sh
- Start composer playground:
composer-playground
- Create the .bna file from the sourceode by running:
TBD
-
Deploy it in the web interface by clicking on Deploy a new business network. Afterwards set the name to blockchaingers18 and the decription as well.
3.2. Choose Drop here to upload or browse to select the .bna to install.
3.3. At the bottom select ID and Secret and leave admin as user but set adminpw as password. It will take a while but then your network should be deployed.
-
After the deployment, start a new shell and run the composer-rest-server:
composer-rest-server -c admin@blockchaingers18 -n never -w true
- After the command was successful you should be able to visit the api docs and the explorer on:
http://localhost:3000/explorer
- The frontend needs to be served over a local webserver in order to allow ajax calls, so start the frontend server:
bin/start-frontend-server.js
You can then serve the frontend on:
http://localhost:8000/pages/layout/top-nav.html