Skip to content
Permalink
Browse files
Update README.md
  • Loading branch information
clarkem10 committed Nov 27, 2021
1 parent 1d1c440 commit 25362887f6a3acecab1bb2787dc2d049623edbb0
Showing 1 changed file with 1 addition and 2 deletions.
@@ -5,5 +5,4 @@ Software Engineering Project Second Year
A website for a bookshop with python backend and html/CSS frontend. There are 3 users, Cutomer1, Customer2 and admin. The customers are able to see the current books in the shop, add them to their basket, and take them to checkout. Admins are able to see and add to the current book stock.

# Installation
Once the project has been downloaded from Github, they should use either installation method:
1. If using Codio, in the terminal type **sudo apt update**. Next cd into your directory and type **sudo apt-get install python3-venv**, followed by **python3 -m venv venv**. To activate the virtual environment, type **. venv/bin/activate**. Once the virtual environment is opened, type **pip install Flask**, **pip install Flask-SQLAlchemy** and **pip install flask-cors**. To run the code, type **export FLASK_APP=Bookshop**, followed by **flask run --host=0.0.0.0**. There should be a message ending with **Press (CTRL+C) to quit**. At the top of codio, click **Project** and **Box Info**. Copy the **Box Info** eg **https://immune-ironic-80.codio-box.uk**, and replace the **80** with **5000**. The website should load.
If using Codio, in the terminal type **sudo apt update**. Next cd into your directory and type **sudo apt-get install python3-venv**, followed by **python3 -m venv venv**. To activate the virtual environment, type **. venv/bin/activate**. Once the virtual environment is opened, type **pip install Flask**, **pip install Flask-SQLAlchemy** and **pip install flask-cors**. To run the code, type **export FLASK_APP=Bookshop**, followed by **flask run --host=0.0.0.0**. There should be a message ending with **Press (CTRL+C) to quit**. At the top of codio, click **Project** and **Box Info**. Copy the **Box Info** eg **https://immune-ironic-80.codio-box.uk**, and replace the **80** with **5000**. The website should load.

0 comments on commit 2536288

Please sign in to comment.