Developer environment to run Tonomy ID locally alongside a blockchain node, and the demo app.
All developers contributing to the project should check Contributors Guide and first check the Troubleshoot Guide if you have issues installing or running.
Hardware suggestions:
In case you have problems here is a list of the dependencies
corepack enabled
v20+. Suggested to install with nvm v0.35+Check out the file ./scripts/install_prerequisits.sh
. This can be used as a guide to install all dependencies on an Ubuntu 18+ machine. Run the script line-by-line, as sometimes you need to exit terminal or restart your machine to continue.
In the Tonomy-ID
repository you need to set up the expo build and install it on your phone. See instructions here
Follow these steps one by one & read them carefully. Do not rush through it.
git checkout development
./app.sh
and read what each command does./app.sh gitinit
./app.sh install
./app.sh init
./app.sh start
./app.sh log antelope
./app.sh stop
or ./app.sh reset
or ./app.sh reset all
See TROUBLESHOOT.md to fix common issues when running the app.
Run all the above steps up to and including ./app.sh install
, then:
./app.sh link
./app.sh test
To run in staging or testnet or mainnet, use:
export NODE_ENV=staging
#or
export NODE_ENV=testnet
#or
export NODE_ENV=production
#then
./app.sh start
Uses debug package.
How to use:
export DEBUG="tonomy*"
all tonomy logsexport DEBUG="tonomy-sdk*"
all Tonomy ID SDK logsexport DEBUG="tonomy-id*"
all Tonomy ID logsexport DEBUG="tonomy-app-websites*"
all Tonomy App Website logsexport DEBUG="tonomy-communication*"
all Tonomy Communication logsOther examples:
export DEBUG="tonomy-sdk:services:communication:communication"
to see all logs from the /Tonomy-ID-SDK/src/sdk/services/communication/communication.ts
moduleexport DEBUG="*"
all debug logs from all installed packagesexport DEBUG="tonomy*,-tonomy-sdk*"
all tonomy logs except for tonomy-id-sdkDEBUG
is set in ./scripts/helpers.sh:L142
See ./servers/README.md