An open API service indexing awesome lists of open source software.

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.

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