ipfs-serve
host a static directory over http and ipfs
Usage
install with npm:
npm install @tabcat/encrypted-docstore
use in an npm script:
// package.json
"scripts": {
"serve": "ipfs-serve -r ./build"
}
Options:
- -V, --version: output the version number
- -d, --debug: output debug to console
- -r, --repo : root directory of repo to host (default: "./build")
- -i, --ipfs : ipfs daemon api address, falls back to a js-ipfs node (default: "js-ipfs")
- -p, --port : port to host repo on http gateway (default: "3000")
- --jrepo : specify directory of js-ipfs repo (default: process.cwd() + "/ipfs-serve")
- --joffline: run js-ipfs offline
- --no-http: do not host with http
- --no-open: do not open in new browser tab
- -h, --help: output usage information