Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dyne/reflow-dpp-demo
Produce a Digital Product Passport from Reflow OS object
https://github.com/dyne/reflow-dpp-demo
crypto demo digital graphql json passport product
Last synced: 4 days ago
JSON representation
Produce a Digital Product Passport from Reflow OS object
- Host: GitHub
- URL: https://github.com/dyne/reflow-dpp-demo
- Owner: dyne
- Created: 2022-01-19T16:55:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-20T10:29:46.000Z (almost 3 years ago)
- Last Synced: 2024-05-01T09:46:59.819Z (7 months ago)
- Topics: crypto, demo, digital, graphql, json, passport, product
- Language: HTML
- Homepage: https://dyne.github.io/reflow-dpp-demo/
- Size: 11.7 KB
- Stars: 3
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 objectThe 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