3nprob / coinos-server

CoinOS Server Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coinos-server

Coinos is a bitcoin wallet app that supports payments over the bitcoin, liquid and lightning networks. Try it out at coinos.io.

This repository contains the code for the backend API server which is implemented as a NodeJS application. The code for the frontend UI is tracked separately here.

Requirements

The bitcoind and elementsd nodes can be a pruned if you want to limit the amount of disk space used.

The reason for running two lightning nodes is so that one can create invoices while the other sends payments when two coinos users want to pay each other.

Getting Started

git clone https://github.com/asoltys/coinos-server
cd coinos-server
cp config/index.js.sample config/index.js <-- edit with connection info for servers and keys for 3rd party API's
yarn
yarn start

Database Setup

I've only tested with Maria. Here's a schema to get you started.

cat db/schema.sql | mysql -u root -p

About

CoinOS Server Code

License:MIT License


Languages

Language:JavaScript 99.7%Language:Shell 0.3%