Skip to content

A Flask application that lets you know @badpun's opinions on things

License

Notifications You must be signed in to change notification settings

stephenwashington/willthisbegood

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WILL THIS BE GOOD

willthisbegood.website is a singe-page website that tells you if certain things will be good or not. All opinions are final.

This website updates daily. To complain about the website, email minervaheavyindustries@gmail.com. To complain about the opinions, tweet @badpun

Installation

willthisbegood runs on Flask, python3, and a Gmail account. process_new_things.py looks at the gmail account, and grabs all emails sent by the whitelisted email. These are then stored in a sqlite3 database, which wtbg.py uses to populate the page. To actually install:

  1. Clone this repository

    git clone https://github.com/stephenwashington/willthisbegood
  2. Set up a virtual environment

    cd willthisbegood
    virtualenv venv
    . venv/bin/activate
  3. Install the necessary dependencies via pip3

    pip3 install -r requirements.txt
  4. Set the environmental variables

    export FLASK_APP="wtbg.py"
    export EMAIL_ADDR="email.to.get.things.from@example.com"
    export EMAIL_PASS="yourp4ssword"
    export WTBG_EMAIL="whtielisted.email@example.com"
  5. Run init_db() in wtbg.py

    >>> from wtbg.py import init_db
    >>> init_db()
  6. Run the Flask app (App will be on http://127.0.0.1:5000)

    flask run

About

A Flask application that lets you know @badpun's opinions on things

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published