npm run buildRun the tests with:
npm testYou 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 watchCreate a config/local-production.yaml file with your configuration.
Build the app:
NODE_ENV=production npm run buildThe production app is run with:
NODE_ENV=production npm run serveTo clean up:
npm run cleanFinally, to certify a document on the testnet blockchain:
- Create a
config/local-development.yamlfile 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