Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jbenet/http2ipfs-web
https://github.com/jbenet/http2ipfs-web
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jbenet/http2ipfs-web
- Owner: jbenet
- Created: 2015-11-23T12:38:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-26T16:46:37.000Z (over 7 years ago)
- Last Synced: 2024-11-26T06:46:30.656Z (16 days ago)
- Language: JavaScript
- Homepage: http://localhost:8080/ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd
- Size: 441 KB
- Stars: 44
- Watchers: 4
- Forks: 10
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - jbenet/http2ipfs-web - (others)
README
# add2ipfs webapp
This is a simple webtool to add URLs to an IPFS node.
**Latest Version:**
- [http://localhost:8080/ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd](http://localhost:8080/ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd)
- [https://ipfs.io/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
![](https://ipfs.io/ipfs/QmTmWyc2pMtG27pUYQdQQSooCPtbfZZCjS9ivAMBkbh4hM/add2ipfs.gif)
## 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. See `ipfs daemon --help` on how to set HTTP Headers for CORS.## Develop
Clone it, edit, and make:
```sh
> 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/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rdnow must:
- ipfs pin add /ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd
- add TXT to add2.ipfs.io: dnslink=/ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd
```## About
- Author: @jbenet
- License: MIT