npm run build
Run the tests with:
npm test
You must use a Testnet3 wallet for the public and private keys. It is
recommended to change the database path to a /tmp
location.
Run the app in dev mode with:
npm run watch
Create a config/local-production.yaml
file with your configuration.
Build the app:
NODE_ENV=production npm run build
The production app is run with:
NODE_ENV=production npm run serve
To clean up:
npm run clean
Finally, to certify a document on the testnet blockchain:
- Create a
config/local-development.yaml
file with all your configuration - Set up a new testnet wallet and note down the Private Key WIF
- Fund the testnet wallet, e.g. using a Bitcoin testnet3 faucet
- Run the app locally in dev mode, with ngrok active
- Submit a document hash to the running app on localhost
- Note down the target address for payment
- Send payment with
node scripts/payment.js PRIVATE_KEY_WIF TARGET_ADDRESS
- Wait for the transaction to be confirmed on testnet blockchain
Interactive CLI tool to release versions
npm run release