The web-based wallet for the Bazo crypto-currency
-
Install Node.js & NPM. Node.js in version 7.10.1 and 6.11.4 worked fine for the build process.
-
Install Yarn
npm install -g yarn
-
Install Project Dependencies
yarn install
Some operating systems, like Ubuntu or Debian may require further packages to be installed through a package manager:
apt-get install -y bzip2
Serve with hot reload at localhost:8080
yarn run dev
Build for production with minification
yarn run build
Serve the production build at localhost:7070 (e.g. for testing service workers)
node start-server.js
In order to run this application in production, build it and serve the dist
folder from a web server. Many functionalities, such as PWA support, NFC-capability etc depend on a secure context, thus a secure context would be preferred. The following functionalities require adjustments in the codebase:
- POS integration:
If you want to let the Wallet query the transaction value based on a given POS ID, implement the respective API call (HttpService.queryTransactionAmount) in
src/services/HttpService.js
. - Automated Account creation:
If you wish to let users make account creation requests, implement the respective API call (HttpService.surpriseFunding) in
src/services/HttpService.js
. This would require anAccTx
on the server-side to register the public key, that was generated by the Wallet. - Communication with the Bazo network:
The Wallet needs to communicate with the REST API of an Bazo client. Change the default URL (Store.state.settings.customURL) in
src/config/Store.js
or let users set a custom URL on theSettings
page of the Wallet. This requires, that advanced options are enabled. - Linking to Bazo Explorer:
Set the href attribute of the link on the
Accounts
page to the correct hostbase.