GiovanniBordiga / tiphub

Non-custodial tipping for GitHub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TipHub

Send sats to your favorite open source contributors! Embed a button in your README and get tips for your work. See an example of that right here:

Tip wbobeirne on TipHub
My pubkey starts with 02458b08

Development

First setup your environment variables, copy .env.example into a file named .env. Review each one and follow the instructions for the ones that need input.

To start the backend:

  • cd backend
  • Setup virtualenv (recommended, not required)
    • virtualenv -p python3 venv
    • source venv/bin/activate
  • pip install -r requirements.txt
  • flask db upgrade
  • FLASK_APP=app.py FLASK_ENV=development flask run

To start the frontend:

  • cd frontend
  • yarn && yarn dev

Production

  • Build the frontend with 'yarn && yarn build'
  • Run FLASK_APP=app.py FLASK_ENV=production flask run

Deploy

This app was built to deploy on heroku by doing the following:

  • Create a new heroku app and link it to the repo
  • Setup your environment variables based on .env.example
  • Provision a PostgreSQL database addon
  • Add the subdir buildpack
    • heroku buildpacks:set https://github.com/negativetwelve/heroku-buildpack-subdir
  • git push heroku master

About

Non-custodial tipping for GitHub


Languages

Language:Python 66.0%Language:TypeScript 22.1%Language:CSS 5.3%Language:HTML 4.9%Language:JavaScript 1.5%Language:Mako 0.2%