MLA Qualifying Offer

What does it do?

This app calculates an qualifying offer for a departing free agent player. The offer value is the average of the 125 highest salaries from the past season, which can be found here. It also visualizes the salaries from the past season using Google charts.

Online Demo:

see an online demo

Run The Code Locally:

Install:

git clone https://github.com/chanyoonzhu/baseball-qualifying-offer.git
cd baseball-qualifying-offer
sudo pip install -r requirements.txt

Run:

python app.py

Test:

python data_analysis/setup.py pytest

References:

Deploying Flask to Heroku

Flask render_template()

Flask app error handling