sleepdefic1t
12/10/2017 - 6:29 PM

http://ipfs-arkticker.ddns.net/

prereq:

Install IPFS as described at https://ipfs.io/docs/install/
free dns redirect: https://www.noip.com/

steps

  • note: your hashes will be different, but the process is the same
  1. make the site root folder and 'index.html' from html provided below:
    mkdir ark_ipfs_ticker && echo '<!DOCTYPE html> <html> <head> <title>Ark IPFS Ticker</title> </head> <body> <script type="text/javascript" src="https://files.coinmarketcap.com/static/widget/currency.js"></script> <div class="coinmarketcap-currency-widget" data-currency="ark" data-base="USD" data-secondary="BTC"></div> </body> </html>' >ark_ipfs_ticker/index.html

  2. add to ipfs:
    ipfs add -r ark_ipfs_ticker

    added Qmb6LE1e51ovZZUtH1oG3xHWhBzNBiafiGFqXZozytPHrs ark_ipfs_ticker/index.html
    added QmaUJxnPMtuJNB7fsehfk846p8kteSCjcyZSGp7263w7nE ark_ipfs_ticker || <- this is the sites root

  3. publish site-root to ipfs using the site-roots hash:
    ipfs name publish QmaUJxnPMtuJNB7fsehfk846p8kteSCjcyZSGp7263w7nE

    Published to QmauPr4PoRif8SqY86tbxXuxvk5qFzhXngZxxuukpGhcBm: /ipfs/QmaUJxnPMtuJNB7fsehfk846p8kteSCjcyZSGp7263w7nE

  4. visit site:
    https://gateway.ipfs.io/ipfs/QmaUJxnPMtuJNB7fsehfk846p8kteSCjcyZSGp7263w7nE

<!DOCTYPE html>
<html>
  <head>
    <title>Ark IPFS Ticker</title>
  </head>
  <body>
    <script type="text/javascript" src="https://files.coinmarketcap.com/static/widget/currency.js"></script>
    <div class="coinmarketcap-currency-widget" data-currency="ark" data-base="USD"  data-secondary="BTC"></div>
  </body>
</html>