- Flask 2.0.1
- Python 3.8.2
- Flask_SQLAlchemy 2.5.1
- SQLAlchemy 1.4.19
- pytest 6.2.4
- Flask 2.0.1
- Werkzeug 2.0.1
- PyJWT 2.1.0
Note that any other python3 version should work, and lower version of Flask could work as well
pip3 install -r requirements.txt
- go to the root directory
- load some data to database:
python3 load_data.py
if sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) disk I/O error *remove the existing database file from the backend directory.
rm valueEats.db
rm valueEats.db-journal
- set FLASK_APP variable, run this on mac/Linux terminal
export FLASK_APP=run.py
- run:
flask run
if port 5000 is being used, use the other ports eg:
flask run -p 5001
or set flask run port variable by
export FLASK_RUN_PORT=5001
Some eateries, diners, vouchers and reviews are already loaded into the database via python3 load_data.py in previous step.
You can register new diners or eateries by yourself, but there won't be any vouchers, reviews or booking for a new user.
Or you can check some preloaded acounts, login with following account:
| Eatery email | Eatery password | Diner email | Diner password |
|---|---|---|---|
| [email protected] | 12345678 | [email protected] | 12345678 |
| [email protected] | 12345678 | [email protected] | 12345678 |
| [email protected] | 12345678 | [email protected] | 12345678 |
| [email protected] | 12345678 | [email protected] | 12345678 |
| [email protected] | 12345678 | [email protected] | 12345678 |
| [email protected] | 12345678 | [email protected] | 12345678 |
| [email protected] | 12345678 | [email protected] | 12345678 |
| [email protected] | 12345678 | [email protected] | 12345678 |
| [email protected] | 12345678 | [email protected] | 12345678 |
| [email protected] | 12345678 | [email protected] | 12345678 |
| [email protected] | 12345678 | [email protected] | 12345678 |
| [email protected] | 12345678 | [email protected] | 12345678 |
| ... | ... | ... | ... |































