Automated Media Analysis (Trust and Safety) and Post-Generation App
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
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.
Subscriptions are through Stripe checkout. https://testdriven.io/blog/flask-stripe-subscriptions/ has a good summary.