Welcome to BreakingBoundrio! This is an educational game where you have to use your knowledge to break boundries and win!
To get started with the game, first clone the repo and cd
into the directory:
git clone https://github.com/FaiZaman/BreakingBoundrio.git
cd BreakingBoundrio
- Create a virtual environment for the Flask dependancies (
virtualenv venv
) - Use
pip install -r requirements.txt
to install all Flask requirements. - In the app direcotry base, run
export FLASK_APP=wsgi.py
and optionallyexport FLASK_ENV=development
. On Windows, useset
instead ofexport
. - Run
flask db init
to initialise the SQLAlchemy database if you haven't done so before. If you have, skip this step. - Run
flask db migrate
to generate database migrations, - Run
flask db upgrade
to implement the migrations. - Use
flask run
to run the app.
When changes are made to the database models in our app, we need to run Flask-Migrate to apply those changes to the database. Use steps 3-6 above to carry out these migrations. If you get an error in step 5, delete the migrations/
folder and the app.db
file and try again.