Skip to content

Setup a paywall with Flask and Stripe to offer paid access to your premium content.

Notifications You must be signed in to change notification settings

dbans02/flask-paywall

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Paywall

Setup a paywall with Flask and Stripe to offer paid access to your premium content.

Workflow

After user register and pays (from the same form), s/he has access to premium content.

QuickStart

Set Environment Variables

Rename config_sample.py to config.py, update the config settings, and then run:

$ export APP_SETTINGS="project.config.DevelopmentConfig"

or

$ export APP_SETTINGS="project.config.ProductionConfig"

Create DB

$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_admin

Run

$ python manage.py runserver

Test

Without coverage:

$ python manage.py test

With coverage:

$ python manage.py cov

Todo

  1. forgot password
  2. change/update password
  3. logging
  4. admin charts
  5. upgrade to python 3/update dependencies
  6. add autoenv

About

Setup a paywall with Flask and Stripe to offer paid access to your premium content.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 70.4%
  • HTML 25.2%
  • JavaScript 4.1%
  • CSS 0.3%