Overview

Guides show you how to use NEM built-in features. Every guide comes with the code implementation ready to use.

Access to more self-paced training reviewing workshops.

How to run an example

Download the snippets. They are divided by programming language and topic.

Cli

  1. Go to cli folder, and give executing permission to an example.
$> chmod +x <file-name>.sh
  1. Find and run an example.
$> ./<file-name>.sh

TypeScript

  1. Go to typescript folder and then install the required packages.
$> npm install
  1. Use ts-node to execute TypeScript files with node.

Install the tool first if you have not it installed yet.

$> npm install -g ts-node
  1. Find and run an example.
$> ts-node <file-name>.ts

If some code contains dynamic variables, for example, a public key (without quotes), run:

$> PUBLIC_KEY='<your_public_key_here>' ts-node <file-name>.ts

JavaScript

  1. Go to javascript folder and then install the required packages.
$> npm install
  1. Find and run an example.
$> node <file-name>.js

If some code contains dynamic variables, for example, a public key (without quotes), run:

$> PUBLIC_KEY='<your_public_key_here>' node <file-name>.js

Java

  1. Open java folder with your favourite IDE.
  2. Find the example and run it as a JUnit Test.