Skip to content

OwnMarket/OwnWallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

own-explorer-logo
Wallet

Wallet frontend application for WeOwn public blockchain node, powered by Angular framework.

Quick Start

Clone the repository:

git clone https://github.com/OwnMarket/OwnWallet.git
cd OwnWallet/Source/chainium-wallet

Install packages

npm ci

Serve App localy

ng serve

Build for production

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.

Test production build

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

Possible build issues

Missing python2

You need to have python2 installed to complete build process successfuly. In linux it's easy to install it.

sudo apt-get install python2

gulp: command not found

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.

Notes

Web3

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.