ipfs-website

my first forey into ipfs web deveoplment

View the Project on GitHub wisehackermonkey/ipfs-website

ipfs-website

my first forey into ipfs web deveoplment

Screenshot_1

install

prerequisite

installed packages

>npm install ipfs-http-client ejs express express-fileupload body-parser

build docker

docker build -t wisehackermonkey/ipfs-website:latest .
docker run -it --rm -p 3000:3000 wisehackermonkey/ipfs-website:latest

Publish

docker login
docker tag wisehackermonkey/ipfs-website wisehackermonkey/ipfs-website
docker push wisehackermonkey/ipfs-website:latest

run using docker (compose file)

Screenshot_3

> cd ./path/to/repo
> docker-compose up

open browser to localhost:3000d

Protip:

if you dont have docker installed you can play with the app using

play with docker

how to run ipfs in a container on windows powershell

$env:ipfs_staging = "${PWD}\staging"
$env:ipfs_data = "${PWD}\data"
docker run -d --name ipfs_host -v $env:ipfs_staging:/export -v $env:ipfs_data:/data/ipfs -p 4001:4001 -p 127.0.0.1:8080:8080 -p 127.0.0.1:5001:5001 ipfs/go-ipfs:latest

docker run -it --rm --name ipfs_host -v $env:ipfs_staging:/export -v $env:ipfs_data:/data/ipfs -p 4001:4001 -p 127.0.0.1:8080:8080 -p 127.0.0.1:5001:5001 ipfs/go-ipfs:latest

todo