Front-End website for BLURT

Here’s how to setup a front-end website for BLURT blockchain. I have the following server specification for BLURT front-end.

  • Ubuntu 20.x
  • 2 vCPU
  • 2 GB RAM (Minimum Memory)
  • 50 GB Hard disk (Minimum disk space)

We need git to download the condenser. Here’s how to install git for Ubuntu operating system.

sudo apt update && sudo apt upgrade -y
sudo timedatectl set-timezone America/New_York
sudo apt-get install screen
sudo apt install git -y
git –version

Let’s download the open source condenser.

git clone https://gitlab.com/blurt/openblurt/condenser
cd condenser
mkdir tmp

I’ve use the Installing Using NVM guide from this website. Just follow the steps.
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

export NVM_DIR=”$([ -z “${XDG_CONFIG_HOME-}” ] && printf %s “${HOME}/.nvm” || printf %s “${XDG_CONFIG_HOME}/nvm”)”
[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh”

nvm ls-remote // check the latest version. As of writing this article, latest version is 15.5.1
nvm install 15.5.1
nvm use 15.5.1
node -v // this is to verify your current version.

Let’s the fun begin.

Install Iptables so we can use redirect to port 80.
sudo apt-get install iptables

npm install -g yarn
yarn global add babel-cli
yarn install –frozen-lockfile or yarn install
yarn run build
yarn run production

Redirect port 8080 to 80, and set DNS to always on SSL (443)
sudo iptables -A PREROUTING -t nat -p tcp –dport 80 -j REDIRECT –to-ports 8080

edit /config/default.json add your entry for session secret, cookie, session key, and site domain.

To create your own secret key, run this command.

node

crypto.randomBytes(32).toString(‘base64’)
.exit

“server_session_secret”: “your_session_secret”,
“session_cookie_key”: ” your_domain_key”,
“session_key”: ” your_domain_session_key”,
“site_domain”: “blurtworld.com”,

Point to your full node ex. rpc.blurtworld.com
“upload_image”: “https://images.blurt.blog”,
“blurtd_connection_client”: “https://rpc.blurt.world”,
“blurtd_connection_server”: “https://rpc.blurt.world”,

Alternative RPC Servers

And test your website.
Production is https://blurtworld.com website. Load balance service with multiple websites and multiple RPC nodes. No websites or nodes single point of failure.

Using Docker is another way to install your condenser.

git clone https://gitlab.com/blurt/openblurt/condenser
cd condenser

git checkout branch_name // the branch to use
docker build -t=”myname/condenser:mybranch” .
docker run -it -p 8080:8080 myname/condenser:mybranch

Install UFW service. Let’s secure the web server against malicious hackers.

apt install ufw

ufw default deny
ufw default deny outgoing
ufw allow ssh
ufw allow https
ufw allow http
ufw allow out ntp
ufw allow out 53/udp
ufw enable
Remarks – Check UFW Status
ufw status verbose
Remarks – ufw disable

Other optional configuration.

Edit search.html for Google search code.
/condenser/src/app/assets/static/search.html

I created it’s on search engine for BlurtWorld.com through Google.

Code: cx=2c5937799227f18e5

Add your advertiser below your content. Edit Post.jsx file.
src/app/components/pages/Post.jsx

And test your website.
Production is https://blurtworld.com website. Load balance service with multiple websites and multiple RPC nodes. No websites or nodes single point of failure.

Support @QUE.COM

Founder, QUE.COM Internet Media. | Founder, Yehey.com a Shout for Joy! | MAJ.COM Management of Assets and Joint Ventures. More at KING.NET Ideas to Life.

Leave a Reply