- To initialise node:
- To bring node online:
ipfs daemon- Files can be added to IPFS by
ipfs add <filename>- Example:
- Uploaded file can be retrieved by CID
ipfs get <CID>-
- Files can be pinned by
ipfs pin add <cid>
- If you wish to prevent the files from being garbage collected, you need to pin them.
-
- You create an IPNS name linked to your IPFS node's ID by:
-
- To delete all files except pinned files:
ipfs repo gc
- I created application using
FlaskandIPFSAPI for uploding and retrieving file. - I also dockerised the app with
ipfs/go-ipfsiamge and hosted it on AWS E2C. - I don't have domain names. So I used
DuckDNSfor DNS services andLets Encryptfor SSL Certificates.
- Once file is uploaded, CID is generated.
- You can view file through public link provided or through the server node itself.
Note : Public URL takes some time (nearly 30 minutes) to index file since upload.


