master |
develop |
---|---|
============
This is a light wallet that connects to a Onest API provided by the witness_node executable.
It stores all keys locally in the browser, never exposing your keys to anyone as it signs transactions locally before transmitting them to the API server which then broadcasts them to the blockchain network. The wallet is encrypted with a password of your choosing and encrypted in a browser database.
Onest-UI depends node Node.js, and version 8+ is required.
On Ubuntu and OSX, the easiest way to install Node is to use the Node Version Manager.
To install NVM for Linux/OSX, simply copy paste the following in a terminal:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
nvm install v9
nvm use v9
Once you have Node installed, you can clone the repo:
git clone https://github.com/Onest-io/ONS-UI.git
cd ONS-UI
Before launching the GUI you will need to install the npm packages:
npm cache clean -f
npm install -g n install
npm config set strict-ssl false
npm install
npm run install-charting-library
The dev server uses Express in combination with Webpack.
Once all the packages have been installed you can start the development server by running:
npm start
Once the compilation is done the GUI will be available in your browser at: localhost:8080
or 127.0.0.1:8080
. Hot Reloading is enabled so the browser will live update as you edit the source files.
If you'd like to host your own wallet somewhere, you should create a production build and host it using NGINX or Apache. In order to create a prod bundle, simply run the following command:
npm run build
This will create a bundle in the ./build/dist folder that can be hosted with the web server of your choice.
We use Electron to provide installable wallets, available for Windows, OSX and Linux Debian platforms such as Ubuntu. First, make sure your local python version is 2.7.x, as a dependency requires this.
On Linux you will need to install the following packages to handle icon generation:
sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils
For building, each architecture has it's own script that you can use to build your native binary:
Linux
npm run package-deb
Windows
npm run package-win
Mac
npm run package-mac
This will compile the UI with some special modifications for use with Electron, generate installable binaries with Electron and copy the result to the root build/binaries
folder.
Clone this repository, run docker-compose up
and visit localhost:8080
See CONTRIBUTING.md
Available for browsing on https://dex.onest.io/