Skip to content

ajbanks/pickr-post

Repository files navigation

topic-tweet

Automated Media Analysis (Trust and Safety) and Post-Generation App

Flask

Environment should contain the following variables

SECRET_KEY
FLASK_APP
FLAKS_ENV
SQLALCHEMY_DATABASE_URI
STRIPE_PUBLISHABLE_KEY
STRIPE_SUBSCRIPTION_PRICE_ID
STRIPE_WEBHOOK_SECRET

Install requirements (use a venv)

pip install -r requirements.txt

Run flask app

flask run --debug

Start a flask shell with app context

flask shell

Database

The Postgres schema is defined by SQLAlchemy ORM models in models.py. Schema changes are handled by Alembic. Flask-Migrate provides convenient configuration to use with flask.

Stripe

Subscriptions are through Stripe checkout. https://testdriven.io/blog/flask-stripe-subscriptions/ has a good summary.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •