Hey everyone! Today we'll make the glorious step into adulthood! The greatest level of Cyb using is when you have 3 greenlights on the right side of footer ;)
Cyb uses color indication to show your connection status. Green indicator means that you have connection to local node, yellow one is for remote node and red one is for no connection at all.
So today we intend to add local IPFS node to our Cyb.
First of all we need to install and initiate IPFS node. If you've already did it, you can skip this section.
The easiest way to install IPFS is homebrew. All you need is just to run in your terminal
brew install ipfs,
ipfs init commands
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["GET", "POST"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Headers '["Authorization"]'
ipfs config --json API.HTTPHeaders.Access-Control-Expose-Headers '["Location"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'
Other methods you can explore here, but I recommend you homebrew :)
Just for test you can write
ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme
and if you see following text, everything is alright. ;)
Start IPFS daemon
So it's time to go online now. Write in your terminal
brew services start ipfs
wait a few seconds. Now run
brew services list
if you see
ipfs started %username% /Users/%username% /Library/LaunchAgents/homebrew.mxcl.ipfs.plist
you have launched ipfs daemon:)
The last step is adding local IPFS node to Cyb.
Download latest release according to your platform.
Type in search field
settings.cyb and press
Enter. You should see something like this:
settings.cyb means that you open settings page in
.сyb app (same as
Qm.....Dvd.ipfs command opens ipfs hash in app
Here you can see addresses of your connections. Default connection type is for our cybernodes. So let's change it!. Put this
http://127.0.0.1:8080 in IPFS connection filed and click on
update button. If everything is correct you should see:
Awesome!!! Now you can use your local IPFS node in Cyb!
Welcome to your adult life!
In the next post we will learn how to import Metamask account in Cyb;)