TBSP Development Tools

The installation of the development tools creates enables you to store keys, required for creating and transferring digital assets.

Description

This article will guide you through the steps required for installing the TBSP development tools.

Note that a working Node.js (Javascript runtime) environment with the specific version v10.19.0 is required.

Additionally, you can use NVM to manage multiple node versions. 

NVM

Mac OS

The Node Version Manager (NVM) enables you to manage multiple versions of Node.js on the same box.

If you're using MacOS Mohave and below, first create a bash profile::

touch ~/.bash_profile

If you're using MacOS Catalina and above, create a .zsh file and run the following commands:

touch ~/.zsh

Install NVM:

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

If you get an error message, create a .nvm file in your home directory:

mkdir .nvm

To see the list of node versions managed by NVM, run:

nvm ls-remote

To install a specific node version (we're currently on 10.19.0), run:

nvm install node version <YOUR_NODE_VERSION>

To see which node version you have installed, run:

nvm ls

To use a specific node version (we're currently on 10.19.0), run:

nvm use v10.19.0

Ensure this node version is the default node version:

$ nvm alias default 10.19.0

Linux - Ubuntu 18.04 OS

To work with TBSP with Ubuntu 18.04, you will need the following:

  • Ubuntu Make
  • Python
  • GCC
  • G++

Ubuntu Make

Ubuntu Make is a command line tool that enables you to download the latest version of popular developer tools.

Run

sudo apt-add-repository ppa:ubuntu-desktop/ubuntu-make

Update the package manager repositories

sudo apt-get update

Now install

sudo apt-get install ubuntu-make

Python

You'll also need to install Python:

sudo apt-get install python3.7

GCC and G++

The GNU Compiler Collection (GCC) is a compiler supporting various programming languages.

The GNU C++ Compiler is a Linux compiler for C++ programs.

Install GCC and G++:

sudo apt install build-essential

Validate if GCC has been correctly installed:

gcc --version

Validate if G++ has been correctly installed:

g++ --version

Install the TBSP Development Tools

To append the required environment variable, run:

export NODE_PATH=$(npm root -g)

Open a new terminal window and check if the NODE_PATH has been set:

echo $NODE_PATH

The output should be

/Users/<YOUR_USER_HERE>/npm/versions/node/v10.19.0/lib/node_modules

Install the TBSP dev tools:

npm i -g git+https://gitlab.tymlez.com/sdk/ng-rt-dev-tools.git#prod/3.0

Install the TBSP test dependencies:

npx tymlez-install

Run

tymlez-dev

A ~/.tymlez/config.json file will now be generated in your home folder.