Skip to content

sadoprotocol/ipfs-api

Repository files navigation

ipfs-api



Deployment

Requirement

  • IPFS server (access to port 5001)
  • MongoDB
  • NodeJS

Configuration

Copy dotenv to .env.
Edit .env and set proper parameters.


Install packages:

$ npm install

Start:

$ npm start


Usage

Examples of html form and upload javascript procedure are available in examples.

Note: Use the pin flag for persistent. Otherwise the media will get removed by garbage collector.



Pending items

  • If IPNS is used, create key backup procedures
  • API Authentication
  • List uploaded? (Require authentication)