Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 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