# Get started

In order to participate in the GNY network you will need to run a Blockchain node. It helps to decentralize the network in case other nodes drop out. For producing blocks you need to run a Blockchain node and activate the block generation by supplying your Delegate secret.

A Blockchain node consists of a node.js app and a postgres database.

# Prerequisites

We support currently only Linux. Please use Ubuntu or one of its derivates:

  • Ubuntu 18.04.3 LTS
  • Ubuntu 20.04 LTS

# Install Git

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git
1
2
3

Install Git from the Git Website (opens new window)

# Install node.js

Install node.js with nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/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" # This loads nvm
1
2
3
4

If this didn't worked please visit the nvm website (opens new window)

Install node.js version v12.22.6:

nvm install v12.22.6
nvm alias default
1
2

# Install PostgreSQL 10

# Import repo key
sudo apt install curl ca-certificates gnupg
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

# Add PostgreSQL apt repo
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

sudo apt update
sudo apt-get install postgresql-10
1
2
3
4
5
6
7
8
9

# Setup PostgreSQL

sudo --login --user postgres psql -c "ALTER USER postgres WITH PASSWORD 'docker';"
1

# Install necessary dependencies:

sudo apt-get install curl ntp wget libssl-dev openssl make gcc g++ autoconf automake python build-essential -y

sudo apt-get install libtool libtool-bin -y
1
2
3

# Clone Repository

# Compile project

npm ci && \
npm run lerna:bootstrap && \
npm run lerna:tsc
1
2
3