8000 GitHub - dyne/reflow-dpp-demo: Produce a Digital Product Passport from Reflow OS object
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dyne/reflow-dpp-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reflow-dpp-demo

Here you have 2 APIs

  • the API /create-dpp-demo queries ReflowOS and produces a Digital Product Passport for and object, showcased at https://dyne.github.io/reflow-dpp-demo
  • the API /reflow-print-data queries ReflowOS for an id and returns an object

The APIs in ReflowOS are documented here: https://github.com/dyne/bonfire_api_json

Intro

The script reflowDPP-APIs.sh will install the whole stack to serve the APIs to create a Digital Product Passport and to retrieve an object from a ReflowOS instance. The Dockerfile will install the same thing inside a Dockerimage.

Install via shell script

, Download reflowDPP-APIs.sh, run it and follow the instructions

  • Open the browser at deployment-machine-ip:3300/docs (if you're running it on your local machine, 0.0.0.0:3300/docs is fine)
  • In Swagger, pick one of the APIs, and pass it this parameters:
{
   "data":{
      "myDataToPOST":{
         "id":"01FSMSBAJ3N6NJGA9XBSGTNRT6",
         "recurseLimit":9,
         "unwind":true
      }
   },
   "keys":{
      
   }
}

Install via Dockerfile

Download Dockerfile and then build it with:

docker build --tag dyne/reflow-dpp-demo:latest .

and run it at port 3300 using:

docker run -d -p 3300:3300 -p 3301:3301 dyne/reflow-dpp-demo:latest

The APIs

You can change the id and recurseLimit manually, the unwind must be on true

The index.html

This file is currently hosted at https://dyne.github.io/reflow-dpp-demo, you can use it as a template to develop a Web App

About

Produce a Digital Product Passport from Reflow OS object

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published
0