Hello World application for the DP-IPFS Library research
Clicking "Upload Image" will run the equivalent of ipfs add picture.jpg in a temporary node that is created in the NodeJS application.
The IPFS network is not obligated to store the file, so the picture might not be accessible after upload.
If we add the same file to our local IPFS repository the application will be able to load the picture, but it might take some 10-15 minutes for ipfs-desktop or other IPFS client to be fully functional.
There is an ipfs node running on the backend and the pictures that are in the example_images folder are pinned in that instance. The newly uploaded images won't be pinned, they exist only in the temporary js-ipfs instance.
The data contract creation is written in the README of the server folder.
There is a known bug about, limit parameter is used in utils/getDocument.js. I rewrote limit: 2 to limit: 1 (the docs says limit: 2), it does not seem to cause problems.