UniversalDot / universal-dot-front-end

An API + React based template for building Substrate Front Ends
The Unlicense
1 stars 0 forks source link

IPFS Client #37

Open stojanov-igor opened 2 years ago

stojanov-igor commented 2 years ago

We have A Running IPFS node at Host: http://109.235.70.27 on port 5001

We can interact with this node through JS-HTTP-Client Library: https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-client

Integrate this Client library into the front end, and connect to the running IPFS node.

For example here how we can get its peers: curl -X POST http://109.235.70.27:5001/api/v0/swarm/peers

The available JS-API methods are shown here: https://docs.ipfs.io/reference/http/api/#getting-started

Definition of Done:

Budget: $80

stojanov-igor commented 2 years ago

We also have a IPFS cluster installed at the same HOST: http://109.235.70.27:9094/id on port 9094.

IPFS cluster is a process that is attached to IPFS Node daemon and can manage it.

It is also exposed through REST API: https://ipfscluster.io/documentation/reference/api/

IT has its on JS-API)client: https://github.com/ipfs-cluster/js-cluster-client