# 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 19.10

# Install Git

sudo apt-get install git
1

Install Git from the Git Website

# 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

Install node.js version v10.16.2:

nvm install v10.16.2
nvm alias default
1
2

# Install PostgreSQL 10

sudo apt-get install postgresql-10
1

# Setup PostgreSQL

sudo -i -u postgres psql -c "CREATE USER postgres2 WITH PASSWORD 'docker' CREATEDB;"
sudo -i -u postgres psql -c "CREATE DATABASE postgres2 WITH OWNER postgres2;"
1
2

# 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

git clone https://github.com/gnyio/gny && cd gny
1

# Compile project

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