Andrea Maria Piana a91faf961c ipfs poc (#1)
2018-05-07 11:31:58 +02:00
2018-05-03 16:58:26 +02:00
2018-05-07 11:31:58 +02:00
2018-05-03 16:58:26 +02:00
2018-05-03 17:08:37 +02:00
2018-05-03 16:58:26 +02:00
2018-05-07 11:31:58 +02:00

Launch figwheel with ./scripts/figwheel.sh then open index.html

IPFS

You need to start a daemon locally, as the main gateway has CORS. The mobile app does not have this limitation and can hit directly the gateway.

Before starting the dameon setup CORS:

ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["GET", "POST"]'

and then

ipfs daemon

To add a directory:

ipfs add -r {dir-name}

After that it will be available through localhost:8080 and the main gateway. It will eventually disappear from the main gateway.

Description
Languages
Clojure 98.5%
HTML 1.1%
Makefile 0.3%
Shell 0.1%