Giter VIP home page Giter VIP logo

flask-stripe's Introduction

flask-stripe

Use this app to integrate Flask and Stripe with a simple user registration system. After user registration, the user is taken to a memeber's page where s/he can then purchase premium content via Stripe.

  • Flask==0.10.1
  • Flask-SQLAlchemy==0.16
  • Flask-WTF==0.8.4
  • Jinja2==2.7
  • MarkupSafe==0.18
  • SQLAlchemy==0.8.2
  • WTForms==1.0.4
  • Werkzeug==0.9.1
  • itsdangerous==0.22
  • requests==1.2.3
  • stripe==1.9.2
  • wsgiref==0.1.2

Setup

  1. clone the repo
  2. setup/activate a virtualenv
  3. install the requirements
  4. update the rdms (sqlite, mysql, postgres)
  5. create the database (db_create.py)
  6. Update the amount charged in the controller, views.py, and the subsequent views, memebers.html and charge.html.

Todo

  1. create better documentation
  2. add unit tests
  3. add email verification
  4. add the ability to make a subscription purchase as well
  5. create a payment form instead of the generic stripe popup

Screenshot

djang-stripe

Project structure

├── app
│   ├── __init__.py
│   ├── forms.py
│   ├── keys.cfg
│   ├── models.py
│   ├── templates
│   │   ├── 404.html
│   │   ├── 500.html
│   │   ├── base.html
│   │   ├── charge.html
│   │   ├── login.html
│   │   ├── members.html
│   │   └── register.html
│   └── views.py
├── config.py
├── db_create.py
├── error.log
├── requirements.txt
└── run.py

flask-stripe's People

Contributors

mjhea0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.