Skip to content

A medium-like web application created using django

Notifications You must be signed in to change notification settings

sulavmhrzn/pay-to-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PayToView

A medium-like web application in which a user pays for a membership after viewing three free posts.

Screencast from 2023-01-17 20-47-35

Configuration

Settings.py

Stripe: Add necessary stripe keys (Secret Key, Webhook Key)

MAX_FREE_POSTS: the number of free posts a user can read before having to pay (default = 3)

Run Locally

Clone the project

  git clone https://github.com/sulavmhrzn/pay-to-view

Go to the project directory

  cd pay-to-view

Install dependencies

  pip install -r requirements.txt

Migrate database

  py manage.py migrate

Start the server

  py manage.py runserver

Start stripe webhook

stripe listen --forward-to localhost:8000/payment/webhook/

Tech Stack

Server: Python, Django

Payment: Stripe

PDF: Weasyprint

About

A medium-like web application created using django

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published