- Start Ipfs daemon to create a node
ipfs daemon
- To get your peers that will share content
ipfs swarm peers
- To add your
dist
folder to the network. This will generate a long hash for you.
ipfs add -r dist/
You'll see like this:
added QmQZsFrE61EQm7QikWBxRX1GLRx4sLevdH3ShTR14sYz2B dist/static/ckeditor/skins
added QmcrL4BkiUruMkTZaur6esvsRUVXmwJ4RfMn2Ddt2WYTDE dist/static/ckeditor
added QmaGhEcNmo1mwTVvJDtF3dvBwASN7vQoYGxQXcLPj28a4B dist/static
added QmTSBEi5BXtCZw7krCr9mreSpw6WZuaGWnMpucasY1tt4j dist
- To publish, copy last hash and execute:
ipfs name publish QmTSBEi5BXtCZw7krCr9mreSpw6WZuaGWnMpucasY1tt4j
You'll get something like this:
Published to QmbHpf6y6hVQ3wzk3A5rV4cPhtJNbai69hsLU8ssbPdcCc: /ipfs/QmTSBEi5BXtCZw7krCr9mreSpw6WZuaGWnMpucasY1tt4j
-
It will take a sometime to load. Then check your app: https://ipfs.infura.io/ipfs/QmTSBEi5BXtCZw7krCr9mreSpw6WZuaGWnMpucasY1tt4j