justicenode / ipfs-gallery-importer

Small nodejs utility to create galleries on IPFS with nanogallery2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This is a small importer script to import albums into ipfs wrapped with a neat gui from nanogallery2.

If you want to know what to expect, heres an example.

Usage

  1. create ./albums and add albums to it
  2. run npm install or yarn to install dependencies
  3. run node importer.js to import all files

to add new albums just add them (and only them) to ./albums and run node importer.js again.

Notes

  • The gallery can be customized in the index.html as it wont be replaced by updates.
  • Having non jpeg or png files in the albums will cause a crash!
  • Multi level albums dont work as nanogallery2 doesnt support that (AFAIK). This script will still import them though.

About

Small nodejs utility to create galleries on IPFS with nanogallery2

License:GNU General Public License v3.0


Languages

Language:JavaScript 72.7%Language:HTML 27.3%