Skip to content

tiphub-io/tiphub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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