README
Initial setup (for node dependencies)
npm install
Development run command
npm getepksigner
(from the cli/ folder - only the first time (no bin folder) or to get new versions of the epksigner)npm run devprepare && cd dapptestcode/ && ../bin/trinity xxxx
(from the dapp folder (for run command) )npm run getepksigner
- To get EPK signer dependency libraries (first time, or when an EPK signer update is needed)
Publishing account
- Organization: @elastosfoundation
- Owner: @benjaminpiette
How to publish to npmjs.com
npm adduser
(once)npm login
(once)- Increase version number in package.json
npm run prepublish
npm publish --access=public
How to install this tool (for DApp developers)
npm install -g @elastosfoundation/trinity-cli
Dependencies to run the CLI (for DApp developers)
- MacOS or Linux operating system
- python
- adb (Android tool)
- ionic/node/angular (to create new ionic app)
- Trinity app installed on android (to be able to deploy EPKs)
How to execute this tool (for DApp developers)
trinity-cli
Examples
- Deploy a DApp on an android device:
trinity-cli run -p android
Frequent issues
Network not reachable using trinity run
Can happen in case the mobile device or the computer are connected to a VPN. Disable the VPN during development or find a way to let your VPN not manage local ips.