python-code/
: contains the Flask projectadd_wii_baseball.sql
: creates thewii_baseball
database (schema)add_user_support.sql
: creates theuser
table in thewii_baseball
database.editorconfig
: ensures whitespace consistency for developers
username: admin
password: nintendo
- Enter the virtual environment
$ cd python-code
$ . ./venv/Scripts/activate
- Install the dependencies
$ pip install -r requirements.txt
- 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'}
- Start the MYSQL server
Just launch the usual SQL.bat
from class
- Add the
wii_baseball
database from the MYSQL console
\. add_wii_baseball.sql
- Add user support to the database
\. add_user_support.sql
- Start the Flask server
$ flask --app main run
- Navigate to http://localhost:5000 with your browser
Make a script to automate the setup?