https://github.com/realpython/flask-paywall
Setup a paywall with Flask and Stripe to offer paid access to your premium content.
https://github.com/realpython/flask-paywall
Last synced: about 2 months ago
JSON representation
Setup a paywall with Flask and Stripe to offer paid access to your premium content.
- Host: GitHub
- URL: https://github.com/realpython/flask-paywall
- Owner: realpython
- Created: 2014-11-22T03:37:45.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-03-16T11:19:27.000Z (over 9 years ago)
- Last Synced: 2025-05-07T21:04:40.861Z (7 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 41
- Watchers: 4
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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:
```sh
$ export APP_SETTINGS="project.config.DevelopmentConfig"
```
or
```sh
$ export APP_SETTINGS="project.config.ProductionConfig"
```
### Create DB
```sh
$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_admin
```
### Run
```sh
$ python manage.py runserver
```
### Test
Without coverage:
```sh
$ python manage.py test
```
With coverage:
```sh
$ python manage.py cov
```
## Todo
1. forgot password
1. change/update password
1. logging
1. admin charts
1. upgrade to python 3/update dependencies
1. add autoenv