/ipfs-api

Infura replacement

Primary LanguageJavaScript

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)