No description
Find a file
2020-04-07 18:39:55 -04:00
app create initial react app 2020-04-07 18:39:55 -04:00
proto create initial react app 2020-04-07 18:39:55 -04:00
.gitignore setup initial backend grpc proxy server 2020-04-07 18:37:12 -04:00
backend.go setup initial backend grpc proxy server 2020-04-07 18:37:12 -04:00
go.mod setup initial backend grpc proxy server 2020-04-07 18:37:12 -04:00
go.sum setup initial backend grpc proxy server 2020-04-07 18:37:12 -04:00
main.go setup initial backend grpc proxy server 2020-04-07 18:37:12 -04:00
README.md create initial react app 2020-04-07 18:39:55 -04:00
server_tls.go setup initial backend grpc proxy server 2020-04-07 18:37:12 -04:00

This document is currently a scratchpad for developer setup and temporary hacks to run the project. It will be made more user-friendly in the future

Setup

Create certificate for browser to backend proxy communication

openssl genrsa -out proxy.key 2048
openssl req -new -x509 -key proxy.key -out proxy.cert -days 365

Development

Requirements: Go, protoc, nodejs

  • Start your LND node
  • Manually update macaroon hex in main.go buildGrpcProxyServer func
  • Start backend server
    go run . --backend_addr=localhost:10001 --server_tls_cert_file=./proxy.cert --server_tls_key_file=./proxy.key --backend_tls=true --backend_tls_noverify=true
    

Replace localhost:10001 with the host:port of the LND node RPC

  • Run the client app in a separate terminal
    cd app
    yarn
    yarn start
    

Open browser at https://localhost:3000 and accept invalid cert (may not work in Chrome, use Firefox)