The subchain controller,seele-anchor-cli
(short as 'anc'), is consist of many components that require tuning. The following is the project's major dependencies.
Place the components in your project root. In every component's root directory, runnpm link
, then inseele-anchor-cli
runnpm i
. Your changes inseele-stemsdk-javascript
should reflect inseele-anchor-cli
.
snc
stands for Seele Nice Commandline../test/node
directory contains the configuration file nodecliconfig.json
for snc start
, use the nodecliconfig.json_bac
in case your editor or terminal crashes. The nodecliconfig.json
is configured as follows:snc start
snc start
./test/node/cli.js
file contains the code for this tool. The function defined in this file, run()
, wraps regular bash statements. With this, it would easy to modify the too drastic "rm -rf ~/.seele; rm -rf seeleTemp;"
command to NOT DELETE all your node database that snc clean
runs.anc
command are introduced in user guide, using the -h
option in anc and you may find other helpful options. One common one is the following:scriptTest.js
and flow.test.js
, in the ./test
directory to know how to write your own test scripts in javascript, or scriptTest.sh
to write in bash.npm test
would run all files in ./test
directory with .test.js
filename extesion, use .only
and .skip
to only run a single test, or selectively skip tests.