# 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
* bitcoind with zmq support
* elementsd with zmq support
* two instances of lnd (c-lightning coming soon)
* a database that sequelize can talk to
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](https://github.com/asoltys/coinos-server/blob/master/db/schema.sql) to get you started.
cat db/schema.sql | mysql -u root -p