Wallet frontend application for WeOwn public blockchain node, powered by Angular framework.
git clone https://github.com/OwnMarket/OwnWallet.git
cd OwnWallet/Source/chainium-wallet
npm ci
ng serve
You have to use build.sh script to build wallet frontend for production.
./build.sh
Script will run ng --prod build and gulp inline script which will bundle all js files into one html file index.html and place it into ./dist/single-file-wallet/ directory.
You can test production build using http-server if you dont have it installed you can install it.
npm i -g http-server
Serve folder with index.html file.
http-server ./dist/single-file-wallet -c-1
-c-1 command flag will disable caching
You need to have python2 installed to complete build process successfuly. In linux it's easy to install it.
sudo apt-get install python2
If script fails to find and run gulp you need to install gulp-cli package globaly.
npm install -g gulp-cli
Now gulp command should be available.
To avoid missing crypto package build issues with Angular and web3 package application is using custom builders @angular-builders/custom-webpack for production builds and @angular-builders/dev-server for development server.
Builder is using custom webpack.config.js file.