Nov N’Thx Backend - smart contracts

Install Web3J

https://github.com/web3j/web3j/releases/tag/v2.1.0-android

Install truffle

npm install -g truffle

Install testrpc

npm install -g ethereum-testrpc

Install dependencies

npm install

Compile solidity code

npm run compile

Run solidity smart contracts tests

truffle test

Generate web3J wrappers

npm run build

Deploy project to ethereum blockchain

npm run build | npm run deploy

NPM config

./package.json

Web3J Paths and Bin configuration

./config/config.json

Truffle configuration

truffle.js

Truffle deployments steps configuration location

./migration

Truffle unit tests location

./tests