Skip to content

This project aims to technologize the knock-on-the-door fund-raising practice

License

Notifications You must be signed in to change notification settings

Omeramsc/hakesh-trom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hakesh-trom

This project aims to technologize the knock-on-the-door fund-raising practice!

Architecture

Architecture

marketing-video

marketing

technical-video

technical

Run locally

Prerequisite

How to run without Heroku

# Install requirements
pip install -r requirements.txt

# Run the server
python app.py

How to run with Heroku

This is the preferred method

Make sure you installed Heroku before hand.

heroku local web -f Procfile.windows

Local DB

Create local database

createdb -U postgres hakes_trom

Create new migration

set "APP_SETTINGS=config.DevelopmentConfig" && set "DATABASE_URL=postgresql://localhost/hakes_trom?user=postgres&password=Aa123456" && python manage.py db migrate

Update local DB

set "APP_SETTINGS=config.DevelopmentConfig" && set "DATABASE_URL=postgresql://localhost/hakes_trom?user=postgres&password=Aa123456" && python manage.py db upgrade 

View local DB

psql -U postgres

Restart Local DB

Make sure to add PGPASSWORD and PGUSER to your env vars before hand

dropdb hakes_trom
createdb hakes_trom
set "APP_SETTINGS=config.DevelopmentConfig" && set "DATABASE_URL=postgresql://localhost/hakes_trom?user=postgres&password=Aa123456" && python manage.py db upgrade 
set "APP_SETTINGS=config.DevelopmentConfig" && set "DATABASE_URL=postgresql://localhost/hakes_trom?user=postgres&password=Aa123456" && python manage.py db migrate
set "APP_SETTINGS=config.DevelopmentConfig" && set "DATABASE_URL=postgresql://localhost/hakes_trom?user=postgres&password=Aa123456" && python manage.py db upgrade 
heroku local web -f Procfile.windows

Common issues

pyscopg2 failed to install

  • Use py3.7
  • Add pg to PATH

Issues with DATABASE_URL

  • Set DATABASE_URL as env var

Paying with PayPal:

You HAVE to set the following environment variables with the respected info:

  • PAYPAL_CLIENT
  • PAYPAL_TOKEN

Since this version is using the sandbox environment of PayPal's API, a payment can be accepted only by users defined in PayPal's web console.

About

This project aims to technologize the knock-on-the-door fund-raising practice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •