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.txtto install all Flask requirements. - In the app direcotry base, run
export FLASK_APP=wsgi.pyand optionallyexport FLASK_ENV=development. On Windows, usesetinstead ofexport. - Run
flask db initto initialise the SQLAlchemy database if you haven't done so before. If you have, skip this step. - Run
flask db migrateto generate database migrations, - Run
flask db upgradeto implement the migrations. - Use
flask runto 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.