Provide an API to interact with a IPFS node
Start the api using npm
$ npm install
$ npm start
The API provide two endpoints
- GET /ipfs/:hash => get the document stored on IPFS
- POST /ipfs => add a new document on IPFS
- Required parameters:
- file as form-data -> File to store on IPFS
- rateLimit -> Rate limit to reach to have an access to the file
- Required parameters:
To test the project, you need to launch a local IPFS node. Then type on terminal
$ npm test
MIT