Sjors / matreon

Self hosted platform to receive money from your supporters, using Bitcoin Lightning network
MIT License
35 stars 2 forks source link

Matreon Build Status Coverage Status

Current status: extremely experimental!

Live instance: matreon.sprovoost.nl

Deploy

This is currently quite brittle and not very secure.

The recommended approach is to use the following AWS CloudFormation template:

Deploy latest release: Matreon.Template

Or install the Amazon CloudFormation template by downloading Matreon.Template and then uploading it on the CloudFormation stack creation page.

Alternatively you can also deploy programatically.

Fill out the form, click next a few times and then wait while it installs applications and downloads the blockchain. After about half an hour on testnet or four hours on mainnet the status should change from CREATE_IN_PROGRESS to CREATE_COMPLETE.

In order to download the blockchain in a reasonable amount of time, a high performance machine was used. Similar to how a sea squirt eats its own brain when it finds a place to stay and no longer needs to swim, you should downgrade to a cheaper machine once the blockchain has been downloaded.

Click on the stack name in the Cloud Formation home and look under resources. Click the link next to WebServer (i-xxxxxxx) which takes you to the EC2 instance management page (you may need to refresh the page first).

The machine state should be stopped, but if it isn't click on the Actions button -> Instance State -> Stop.

Once it's stopped, click on the Actions button -> Instance Settings -> Change nstance type and choose t2.small. Finally, start the instance. A few minutes later your Matreon should be ready to go!

This blog post explains the steps in more detail.

INSTALL.md has instructions for Heroku and other platforms.

Development

See DEVELOP.md. Pending a mock, you'll need to have access to a Lightning Charge installation.