CODE INSTALLATION
Open terminal and do sudo apt update
Next, go to https://github.coventry.ac.uk/5001CEM-2122/bk-shop.git and click on the code button. On the dropdown, copy SSH key
Go back to terminal, type git clone and paste SSH key, this downloads the project
Change directory to project folder: cd bk-shop
Do sudo apt-get install python3-venv
Then do python3 -m venv venv
After, activate the virtual environment by: . venv/bin/activate
Now that all that is done, install the following packages with the following commands: pip install Flask
pip install Flask-SQLAlchemy
pip install Flask-Bootstrap
pip install Flask-Cors
pip install Flask-Reuploaded
pip install Flask-WTF==0.15.1
pip install Path
pip install wheel
pip install WTForms==2.3.3
After you have installed all that, the code is now ready to run.
Export app: export FLASK_APP=app
Run host: flask run --host=0.0.0.0
Open your box URL on port 5000 e.g., https://spend-folio-5000.codio-box.uk (this URL is an example and will not work for you) When your webpage opens you should see the login screen since you are not logged in.