Awesome
add2ipfs webapp
This is a simple webtool to add URLs to an IPFS node.
Latest Version:
- http://localhost:8080/ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd
- https://ipfs.io/ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd (*)
(*) wont work directly out of https://ipfs.io until https://github.com/ipfs/infrastructure/issues/105 is fixed.
Preview
Troubleshooting
-
The page is not loading! What do I do? Try cloning this repository, run
make build
and use the hash you get there. -
There is an error, nothing seems to happen. Check the browser console, there may be errors. It may be a config issue (writable or CORS).
-
Config issue? Writable? CORS? In order to write to ipfs, your daemon must allow the webpage to write through. It is recommended that you turn the ipfs gateway writable, and use the public gateway. If that fails, try enabling CORS for
http://localhost:8080
or whatever port you're using. Seeipfs daemon --help
on how to set HTTP Headers for CORS.
Develop
Clone it, edit, and make:
> make build
cp -r lib build/.
cp index.html build/.
ipfs add -r build | tail -n1
added QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd build
> make publish
cp -r lib build/.
cp index.html build/.
ipfs add -r build | tail -n1
added QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd build
ipfs add -r -q build | tail -n1 >versions/current
cat versions/current >>versions/history
here are the links:
http://localhost:8080/ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd
http://gateway.ipfs.io/ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd
now must:
- ipfs pin add /ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd
- add TXT to add2.ipfs.io: dnslink=/ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd
About
- Author: @jbenet
- License: MIT