Skip to content

Commit

Permalink
add Electron info to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamISZ committed Aug 18, 2020
1 parent 29b55a3 commit 520102a
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,23 @@ Currently a very bare bones prototype demonstrating the following functionality:
This is one of the initial steps in trying to realise something like what is described [here](https://gist.github.com/AdamISZ/f062c7453c6973a8287897fe506b9d19).


Required steps to test this demo:
## Required steps to test this demo:

### Either: Running the electron app.

One of the main reasons for using a Javascript framework like Angular is that either browser or cross platform desktop clients using Electron are possible. Hence the first test [release](https://github.com/Joinmarket-Org/jmcontrolcenter/releases) (0.0.1dev is the tag) offers an Electron desktop app for Windows, Linux and MacOS. Verify the signature, then unzip and run the executable inside it. To actually see the app in action, you'll need to do the [below](#run-jmwalletd).

(Note that to enable testing, certificate verification is disabled inside this test app; obviously this is not safe and will be replaced with a mechanism to import the cert that the user is using for the backend.)

### Or: Run in the browser.

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.5. For this second mode of running, in browser, you will need Angular and its dependencies installed, so this is mainly for developers. There are many guides on the Web.

#### (Development server)

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. As above, you will need to do the [below](#jmwalletd) to test the functionality.

## Run jmwalletd

Check out the `rpc-api-1` branch on [Joinmarket-clientserver](https://github.com/Joinmarket-Org/joinmarket-clientserver).
Go into the virtualenv as for any Joinmarket script.
Expand All @@ -21,17 +37,14 @@ pytest --btcconf=/some/dir/bitcoin.conf --btcroot=/some/dir/bitcoin-0.19.0.1/bin
Generate a test key and certificate named `key.pem` and `cert.pem` respectively and drop them in the `scripts/` folder of Joinmarket.
Run the new daemon with : `python jmwalletd.py` in that `scripts/` folder and in the Joinmarket `jmvenv` as usual.

Then run the Angular project as described below:

===============

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.5.

## Development server
## Once frontend and backend are running:

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`.
Only one functionality has been implemented: load and display a wallet.

From here you can click "Unlock wallet", fill in wallet file name and password, and the wallet contents will be displayed automatically.
You can click "Unlock wallet", fill in wallet file name and password, and the wallet contents will be displayed automatically.

You will probably want to first generate a regtest wallet with a filename and then fund it from the test wallets provided by `ygrunner.py` (but an empty wallet will be a start).

0 comments on commit 520102a

Please sign in to comment.