IPFS (InterPlanetary File System) is a peer-to-peer protocol and network designed to create a decentralised method of storing and sharing files.
Unlike the traditional client-server model of the internet, IPFS allows users to share files directly with each other, rather than relying on a centralised server to store and distribute content.
Files in IPFS are addressed using content-addressing, meaning each file is given a unique hash or CONTENT IDENTIFIER (CID) based on its content, and this hash is used to retrieve the file from the network.
When a user adds a file to IPFS, the file is broken up into small pieces called blocks, and each block is given a CID. These blocks are then stored on different nodes in the network, so that the file can be easily retrieved from multiple sources.
This ensures redundancy and fault-tolerance while also making it difficult for any one node to become a single point of failure or control.
Read: An Introduction to IPFS
For this example we are creating a simple website.
Step 1: If you are unfamiliar with web design write the main content for your website including Title, Main Body of text, with links to other pages/site & footers.
Step 2: Use a HTML template! Paste the text you have written accordingly. Optional to also create a .CSS stylesheet for your website.
Step 3: Save your directory. All .html pages + images must be in the same Folder.
Download and install IPFS from the Official website.
If you’re using the Desktop Application you will not have to initialise.
Using a Terminal or command prompt, Run command: ipfs init .