Skip to content

sourface94/post-soc

 
 

Repository files navigation

topic-tweet

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

Scrapes internet for users niche and posts tweets for that niche

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.9%
  • HTML 13.4%
  • CSS 4.3%
  • JavaScript 1.2%
  • Jinja 0.8%
  • Mako 0.2%
  • Shell 0.2%