breez / server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

server

Build

go build .

Run

First export the following environment variables:

LISTEN_ADDRESS="<host>:<port>"

FCM_KEY=<Your FCM key to send notifications>

LND_ADDRESS="<host>:<port>"
LND_CERT="-----BEGIN CERTIFICATE-----\\n<certificate content replacing each eol by \\n>\\n-----END CERTIFICATE-----\\n"
LND_MACAROON_HEX="<content of the macaroon file in hexadecimal>"
NETWORK=simnet #or testnet or mainnet

GOOGLE_CLOUD_SERVICE_FILE=<full path of the json file>
GOOGLE_CLOUD_IMAGES_BUCKET_NAME=<name>.appspot.com

REDIS_URL="127.0.0.1:6379"
REDIS_DB="6"

SPARKPOST_API_KEY=<api key>
CARD_NOTIFICATION_EMAIL=<email>
CARD_NOTIFICATION_NAME=<name>
CARD_NOTIFICATION_FROM=<email>

Then run:

./server

About

License:GNU Affero General Public License v3.0


Languages

Language:Go 99.4%Language:PLpgSQL 0.4%Language:Shell 0.3%