Write Article
Create Collection
Import from medium
Sign in
POSTED 14 Mar 2019 15:32

Interacting with the IPFS protocol: a tutorial for beginner


For Linux and Mac: go-ipfs github and build from source

For Windows user: Download Prebuild package and extract the go-ipfs folder.

Download the open source programming language software Go from

In your IPFS foder, move the files ipfs.exe into the bin folder of your Go folder

Open your terminal and type the command:

ipfs help

And then type:

ipfs init

The command line will then give you your peer identity in the form of a hash

ipfs init
 initializing ipfs node at /Users/xxxx/.go-ipfs
 generating 2048-bit RSA keypair...done
  peer identity: Qmcpo2iLBikrdf1d6QU6vXuNb6P7hwrbNPW9kLAH8eG67z
  to get started, enter:

        ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme

Save your peer identity (the Hash) in a text file.
Now, try running:

ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme

You should see something like this:

Hello and Welcome to IPFS!

██╗██████╗ ███████╗███████╗
██║██████╔╝█████╗  ███████╗
██║██╔═══╝ ██╔══╝  ╚════██║
██║██║     ██║     ███████║
╚═╝╚═╝     ╚═╝     ╚══════╝

If you're seeing this, you have successfully installed
IPFS and are now interfacing with the ipfs merkledag!

| Warning:                                              |
|   This is alpha software. use at your own discretion! |
|   Much is missing or lacking polish. There are bugs.  |
|   Not yet secure. Read the security notes for more.   |

Check out some of the other files in this directory:

  ./quick-start     <-- usage examples
  ./readme          <-- this file

Open another terminal and type the command:

ipfs daemon

You will then get

ipfs daemon API
Initializing daemon...
API server listening on /ip4/
Gateway server listening on /ip4/

Boomshakalaka your are now using an ipfs node and you can start interacted with the protocol!