Skip to content

Latest commit

 

History

History
74 lines (54 loc) · 2.24 KB

DEVELOPMENT.md

File metadata and controls

74 lines (54 loc) · 2.24 KB

Nault Development

Application Structure

  • Nault - The main wallet application (UI + Seed Generation/Block Signing/Etc).
  • Communication with the network is done via Nano RPC and Websocket protocols, private or public on any nano network.

Development Prerequisites

  • NodeJS v12.x + NPM v6.x
  • Angular CLI: npm install -g @angular/cli

Development Guide

Clone repository and install dependencies

git clone https://github.com/Nault/Nault
cd Nault
npm install

Run the wallet in dev mode

npm run wallet:dev

If you want to debug in VS code, first install debugger for chrome Then you can just go to the debug screen and choose "Launch Chrome http"

Run the wallet in dev mode as https (for example if using the Ledger device)

npm run wallet:dev-ssl

To debug in VS code: Go to debug screen and choose "Launch Chrome https"

Build Wallet (For Production)

Build a production version of the wallet for web:

npm run wallet:build

Build a production version of the wallet for desktop: (Required for all desktop builds)

npm run wallet:build-desktop

Desktop Builds

All desktop builds require that you have built a desktop version of the wallet before running!

Run the desktop wallet in dev mode:

npm run desktop:dev

If you want to debug in VS code, first install debugger for chrome Then you can just go to the debug screen and choose "Electron: Main", "Electron: Renderer", or "Electron: All" for both Main and Renderer threads.

Build the desktop wallet for your local OS (Will be in desktop-app\build):

npm run desktop:local

Build the desktop wallet for Windows+Mac+Linux (May require dependencies for your OS View them here):

npm run desktop:full

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.