Active
September 12, 2023

FLEEK NETWORK Phase {1}


Project Information


Official Information:


DESCRIPTION


Fleek Network is a decentralized edge platform designed to make it easier to create and run performant web services (CDN, serverless operations, and so on). Fleek Network's globally distributed and autonomously controlled network of edge nodes enables developers to design and use a wide range of edge services with ease. These services inherit cryptographically and economically secure infrastructure, guaranteed node and geographic coverage, stable and predictable pricing, and uniform quality and performance across all network services. The purpose of Fleek Network is to provide a platform from which all Web3 protocols, middleware, services, and applications may further decentralize their stack without sacrificing cost, performance, complexity, or developer/end-user experience.


Server Requirements


Recommendations from the team (VPS/VDS/DS):
32 GB RAM, at least 20 GB SSD, Ubuntu 20.04

โ € Suitable servers:


Preparation

Update the server

sudo apt update 

Open the ports

sudo ufw allow 4300:4399/udp && sudo ufw allow 4200:4299/tcp
ufw allow 22 && ufw allow 4069 && ufw allow 4200 && ufw allow 6969 && ufw allow 18000 && ufw allow 18101 && ufw allow 18102
sudo ufw enable

Press y to accept and press enter

sudo ufw status 

Create a non-root user with administrative privileges.

Here, we used danke you can use whatever name you want, just replace danke with your chosen name.

adduser danke 

You will be prompted to input your password, add your password

Then other name values like Full Name, Room Number, Work Phone etc. will request an input. Press enter to use the default values

Grant the user the permissions and switch to the user.

usermod -aG sudo danke && su danke

Ensure to change to the user home directory

cd /home/danke

Install Fleek


curl https://get.fleek.network | bash

You will be required to select how you would like to run the Fleek network: select natively by typing 1 and pressing enter

type yes and press enter

type in your password and press enter

Then, allow your installation and compilation of Fleek to complete.

Press enter

press enter to continue

Then run this code to display you keys

lgtn keys show

Note: Save your keys (Node public key and consensus public key) some where safe you will be needing them to fill out the participation form

Launch the Network node by running

sudo systemctl start lightning

Check the status of the service

sudo systemctl status lightning

press shift + q to exit


Registration


Check the health status of your node

curl -w "\p" localhost:4230/health

Your will get an output running

Head to metamask wallet

  1. Add Fleek Network as a custom network in Metamask.

go to https://faucet.testnet.fleek.network/ connect your wallet and make sure your selected network is the Fleek Network and click on Mint FLK

After a short while 1010FLK will appear in your wallet

Next click on the Stake FLK and you will get a pop up like the image below. Fill in your details

  • The Node public key ๐Ÿ—
  • The consensus Public key ๐Ÿ—
  • your IP Address

Then click on stake to proceed

Confirm in your wallet. Then you get

run this again, this time you get running and staked

curl -w "\p" localhost:4230/health

To see the amount staked run, answer yes to the question prompts

curl https://get.fleek.network/node_details | bash

You can watch the Node output logs by running the command

tail -f /var/log/lightning/output.log

For diagnostics run the command:

tail -f /var/log/lightning/diagnostic.log

Run this script to get the health check overview:

curl -sS https://get.fleek.network/healthcheck | bash

enter yes for the answers to the prompt, output should look like this if everything works fine.

Congratulations


Update your node


To update your node, you need to log in as the user you registered , danke in my case

su danke

Then

cd ~/fleek-network/lightning 
git checkout testnet-alpha-0 && git stash
git pull origin testnet-alpha-0

Or run this script

curl -sS https://get.fleek.network/update | bash

Extra


stop the Network Node by running

sudo systemctl stop lightning

Restart the network by running

sudo systemctl restart lightning

You can watch the Node output by running the command

tail -f /var/log/lightning/output.log

For diagnostics run the command:

tail -f /var/log/lightning/diagnostic.log


GOOD LUCK

Social Media / Community