Clone and navigate to the repository:
git clone https://github.com/yafetkubrom/csce-3444-project/
cd csce-3444-project
Install the required pip packages with the following command
pip3 install -r requirements.txt
First, cd
into the eagleseat
directory:
cd eagleseat
Then, start the flask server:
python3 -m flask run
Environment variables used during the program are to be stored in a .env
file inside of the eagleseat
directory. An example file (.env.example
) is included.
The example file will be used if no .env
file is present
[]: # TODO: Write Data Storage and Exchange Documentation
[]: # TODO: Write Database Structure Documentation
The cart is a delivery method key value pair and a JSON list of menu item IDs and option strings, stored in the
cart
session variable. For example:
{
// requested delivery method
"delivery_method": "takeout",
// list of menu items
"items": [
{
// id of menu item
"id": 23,
// list of option strings for menu item
"options": [
"No Pickles",
"Extra Sour Cream",
"Lite Ketchup"
]
},
{
// id of another menu item
"id": 2,
// not every item needs modification options
"options: []
}
]
}