No description
Find a file
2021-12-22 16:06:25 +01:00
docker/regtest dev: add helper script to fund jm wallet with regtest coins (#3) 2021-12-15 10:53:16 +01:00
public Update logo 2021-12-20 15:42:31 +01:00
src Form improvements 2021-12-20 17:49:29 +01:00
.gitignore Use npm instead of yarn 2021-11-29 17:24:39 +01:00
LICENSE Add MIT license and update package info 2021-12-22 16:06:25 +01:00
package-lock.json Add MIT license and update package info 2021-12-22 16:06:25 +01:00
package.json Add MIT license and update package info 2021-12-22 16:06:25 +01:00
README.md Add MIT license and update package info 2021-12-22 16:06:25 +01:00

JoinMarket Web UI

For now this repository is supposed to be a central place to collect resources related to the JoinMarket Web UI project. We'll see what collaboration tools suit use as we go forward. Suggestions and feedback welcome!

  • 🔗 Join our Telegram group.
  • 👉 Check out the Wiki for resources such as meeting notes, call recordings, ideas, and discussions.

This project builts upon work done by Shobhitaa, Abhishek, and Adam (waxwing) himself. GitHub repository: JoinMarket-Org/jm-web-client

Local development

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Setup

Here is how you can set it up and play around with it yourself.

Docker (regtest)

See the docker regtest setup readme.

RaspiBlitz Setup

Prerequisite: RaspiBlitz with JoinMarket

  1. Install JoininBox on your RaspiBlitz:

You can install it via the RaspiBlitz Services menu: Services > j [BTC JoinMarket+JoininBox menu]

This app makes use of the JoinMarket RPC API. For this, you will need JoinMarket version 0.9.3 or higher. If needed you can upgrade JoinMarket to the latest commit via the JoininBox menu on your RaspiBlitz: Type jm in the command line and select UPDATE > ADVANCED > JMCOMMIT. This will install the latest development version from JoinMarket's master branch.

Prerequisite: JoinMarket API Service

  1. As the joinmarket user on your RaspiBlitz, generate a self-signed certificate for the JoinMarket API Service as described here, and put the certificate and the key in the ~/.joinmarket/ssl/ directory.

Hint: To login as the JoinMarket user, you can ssh into your RaspiBlitz, type jm, and exit the JoininBox menu.

Create the SSL directory:

(jmvenv) joinmarket@raspberrypi:~ $ mkdir ~/.joinmarket/ssl/

Generate the certificate and associated key:

openssl req -newkey rsa:4096 -x509 -sha256 -days 3650 -nodes -out ~/.joinmarket/ssl/cert.pem -keyout ~/.joinmarket/ssl/key.pem

Hint: You don't have to enter anything meaningful, you can just hit the return key a couple of times.

  1. Start the JoinMarket API service:
(jmvenv) joinmarket@raspberrypi:~/joinmarket-clientserver/scripts $ python jmwalletd.py

You should see the following:

2021-11-18 18:16:57,639 [INFO]  Starting jmwalletd on port: 28183
2021-11-18 18:16:57,661 [INFO]  Joinmarket daemon listening on port 27183
  1. Create an ssh tunnel for the API service. As the joinmarket user, add the following lines to your ~/.ssh/config file:
Host raspiblitz
  HostName 192.168.X.X # (IP address of your RaspiBlitz)
  User admin
  ForwardAgent yes
  LocalForward 28183 localhost:28183

Download and install the app

In short:

git clone https://github.com/joinmarket-webui/joinmarket-webui.git
cd joinmarket-webui
npm install && npm start