Skip to content

Basic Python application using flask to access baseball database data and display it to the screen to be viewed and parsed by user

Notifications You must be signed in to change notification settings

lauren-adams/DataBaseball

Repository files navigation

Wii Baseball - Group Project

Project Files

  • python-code/: contains the Flask project
  • add_wii_baseball.sql: creates the wii_baseball database (schema)
  • add_user_support.sql: creates the user table in the wii_baseball database
  • .editorconfig: ensures whitespace consistency for developers

Admin Account

username: admin
password: nintendo

Running the webapp

  1. Enter the virtual environment
$ cd python-code
$ . ./venv/Scripts/activate
  1. Install the dependencies
$ pip install -r requirements.txt
  1. Configure your MYSQL environment

Add a file under python-code/ called config.py with the following contents, replacing '<PASSWORD>' with your password:

mysql = {'location':'localhost','user':'root','password':'<PASSWORD>','database':'baseball'}
  1. Start the MYSQL server

Just launch the usual SQL.bat from class

  1. Add the wii_baseball database from the MYSQL console
\. add_wii_baseball.sql
  1. Add user support to the database
\. add_user_support.sql
  1. Start the Flask server
$ flask --app main run
  1. Navigate to http://localhost:5000 with your browser

TODO

Make a script to automate the setup?

About

Basic Python application using flask to access baseball database data and display it to the screen to be viewed and parsed by user

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •