- Install Node.JS
- Install Quasar CLI
- Install IOST Iwallet CLI
- Install IOST Iwallet Chrome Extension
- Install Docker
- Optional: Install Firebase CLI (not yet fully implemented)
- Clone Git repo
git clone https://github.com/blockdevsasia/iost-boilerplate.git
- cd into the root project folder
cd iost-boilerplate
- Install dependencies for client:
npm run install:client
- Install 'admin' account for local node':
npm run install:localadmin
- Optional: Install dependencies for firebase:
npm run install:firebase
Best is to run the start commands below each in their own terminal so they can be individually stopped/started/monitored
- Start the Quasar browser app
npm run start:client
- Start the local IOST node for unit testing
npm run start:localnode
Tests are configured to run with root project folder as working directory.
- Run the test for the shared libraries
npm run test:lib
- Run the test for the "app" contract
npm run test:contracts
Currently, publishing to Local is pointless for testing with iWallet as only MAINNET and TESTNET can be used. MAINNET publishing is coming soon (or do a pull request!)
Publishing with this script will also update the CONTRACT_ID in the .env.dev, .env.prod environment files that are automatically read into the application.
Make sure to kill and restart the Quasar app after you published a contract!
- Deploy to Local net (docker)
npm run deploycontract:local
- Deploy to TESTNET
npm run deploycontract:testnet
As mentioned, there are "dotenv" config files. Make sure you create your own "App Admin" account in IOST, and put the name and seckey in the ADMIN_ACCOUNT and ADMIN_SECKEY fields.