The popular game Mastermind rebuild using python and flask
- virtualenvironment (venv)
- pip packages
- Flask
- Flask-WTF
- python-dotenv
- Clone this repository.
- Create a
mastermind.db
file inside thestorage
folder. - Execute the sql from
storage/mastermind.sql
onto themastermind.db
you just created. - Copy and rename
.env.example
to.env
. - Fill in your credentials inside the
.env
. - Run the flask program. (For tips on how to checkout the #Development tips below)
- Enjoy! 🎉
To enable automatic rebuilding on code change, set the current flask app to run in a dev environment. See the code examples below for more information on how to set this up on windows or unix.
Unix
export FLASK_APP=app.py
export FLASK_ENV=development
flask run
Windows
set FLASK_APP=app.py
set FLASK_ENV=development
flask run