Skip to content

ajbanks/pickr-post

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3b8a911 · Apr 23, 2024
Aug 17, 2023
Oct 22, 2023
Jan 14, 2024
Jan 17, 2024
Jan 31, 2024
Oct 21, 2023
Jan 17, 2024
Aug 15, 2023
Aug 15, 2023
Apr 23, 2024
Jan 11, 2024
Jan 23, 2024
Nov 13, 2023
Oct 18, 2023
Jan 4, 2024
Nov 13, 2023
Aug 14, 2023

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.