Skip to content

🌎 World’s first Wait Management System 🚀for Restaurants 🍕 by integrating the Point of Sales Report and describing the problem in detail with suggesting our unique solution to it by implementing stock management, sales report, Advanced Queue management, Critical Data Visualization, real time-notification management and category sorting. 📝

Notifications You must be signed in to change notification settings

ChasingTheDream369/Wait-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Wait-Management-System

Summary

• Created the world’s first Wait Management System for Restaurants by integrating the Point of Sales Report and describing the problem in detail with suggesting our unique solution to it by implementing stock management, sales report, Advanced Queue management, Critical Data Visualization, real time-notification management and category sorting.

• Created the schema design using Navicat and then used SQLALchemy with PyMySQL to define the database schema of the backend to deal with the smooth and efficient storage and retrieval of data. Implemented the server using Flask REST API and used Flask session and CORS to further deal with the development issues and facilitating user interactions with the system.

• Used Pycryptodome, Hashlib, Crytography to deal with the user login, user registration and logouts.

• Deployed the entire code on Heroku and received the 5th highest score in the course, being the best team in a single tutorial.

Project Details

Note: To start Front-end Server and Back-end Server on VM using development mode, you need to follow the section 1 to build environments on VM machine

Note: If you running our system using VM by development mode then following section 1.1 or 1.2 is enough, section 2 is using for running front-end in production / developments mode.

Note: Section 3 is the default user accounts and customer records use for after you following Section 1 and use our system

Contents

1. Setup environments on VM

Must be run inside Lubuntu 20.4.1 LTS virtual machine

Note: Our team chose to use VM as the development environment for our project, We followed the COMP3900 Virtual Machine Guide and running the VM on VMware WorkStation.

Note: Our team give 2 options to configure environments on VM, but make sure you have already have (unzip) our project directory and change it relative path to back-end folder from start.

  • Running the setup.sh under back-end folder
  • Step by step follow the instructions in section 1.2 from back-end folder

1.1. Running setup.sh file to configure environment

  1. Change your path of terminal to our back-end folder which is under relative path
capstone-project-comp3900-m18b-segmentationfault/back-end/
  1. run setup.sh file
source setup.sh
  • Note there are few things you need to do during the setup.sh running

    1. enter password lubuntu when you update apt
    2. press y for installing python3-pip & mysql-server
    3. when .sh file open the mysql server, enter sudo mysql ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘root’; to change the password for mysql root user
    4. after you change the password for mysql root user, enter CREATE DATABASE test; to create database for project
    5. after creating database enter exit
    6. press any y if terminal ask you to do
    7. then setup.sh will automatically run the remaining command , install everything we need for project and start running our system.

1.2. Step by step follow the instructions

  1. open the terminal

  2. update apt, Note: if need to enter the password, please type lubuntu

sudo apt update
  1. Change your path of terminal to our back-end folder which is under relative path
capstone-project-comp3900-m18b-segmentationfault/back-end/
  1. install python3-pip, Note: press y if you need
sudo apt install python3-pip
  1. install third party libraries for python
pip install -r requirements.txt
  1. install Mysql server, Note: press y if you need
sudo apt install mysql-server
  1. change the root password for Mysql
sudo mysql
ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘root’;
  1. create database for project and exit Mysql
CREATE DATABASE test;
exit
  1. config mock data for database
python3 run.py
  1. Change your path of terminal to our front-end folder which is under relative path
capstone-project-comp3900-m18b-segmentationfault/waiter-manager-frontend/
  1. install all of the package need for front-end, Note: press y if you need
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install --force
  1. Now all of the environments are installed, if you want to run our system make sure you are under the relative path
capstone-project-comp3900-m18b-segmentationfault/waiter-manager-frontend/
  1. start our front-end & back-end server by typing
npm run test

1.3. How to reset initial database mock data

Note: this section is not needed once you follow the section 1.1 / section 1.2 , then server will run automatically, this is just a recover step in case you accidently close terminal or some wired error happen.

Note: if you want to reset initial database data, please make sure you are under front-end folder,type

npm run data

1.4. How to rerun our system in case you accidently close it

Note: this section is not needed once you follow the section 1.1 / section 1.2 , then server will run automatically, this is just a recover step in case you accidently close terminal or some wired error happen.

Note: please make sure you are under front-end folder,type

npm run test

2. How to run frontend in Production mode

2.1. Before you build

  1. Ensure latest node.js is installed

  2. Install vite:

    npm install -g vite
    
  3. Install TypeScript

    npm install -g typescript
    

2.2. Build the frontend

  1. Make sure you're inside frontend folder:

    cd waiter-manager-frontend
    
  2. Install all dependencies

    npm install --force
    
  3. Build the project

    npm run build
    

    Alternatively, you can run

    tsc && vite build
    
  4. Now the built and bundled output is in the /dist folder

    cd dist
    

2.3. Run the frontend

  1. Install live-server npm package, this can run html files on a local machine.

    npm install -g live-server
    
  2. Make sure you run the backend server first, refer to the instructions from backend.

  3. Inside the /dist folder, run the following command:

    live-server .
    

    This will run the frontend in production mode.

    The application entry point is now available at http://127.0.0.1:8080/welcome

2.4. How to run frontend in Development mode

  1. Make sure the latest Node.JS is installed.

  2. cd into waiter-manager-frontend.

  3. run npm install --force

  4. After starting the backend server, run npm run test.

The application entry point is now available at http://127.0.0.1:5173/welcome

3. Deafult User accounts

3.1. Manager accounts

Restaurant User_Name Password
MkDonuts Alex Alex123!
MkDonuts Yi Yi12345!
Domin Tony Tony123!
KDC Nancy Nancy123!
Hungry sparrow Bunny Bunny123!

3.2. Kitchen staff accounts

Restaurant User_Name Password
MkDonuts Tom Tom1234!
MkDonuts Anmiao Anmiao123!
Domin Annalee Annalee123!
KDC Nina Nina123!
Hungry sparrow Ella Ella123!

3.3. Watier staff accounts

Restaurant User_Name Password
MkDonuts Leo Leo1234!
MkDonuts Yi Yi12345!
Domin Nelson Nelson123!
KDC Fern Fern123!
Hungry sparrow Page Page123!

3.4. Past customers

Restaurant User_Name Num_People
MkDonuts Sabina 5
MkDonuts Susan 10
MkDonuts Liz 4
MkDonuts Ray 4
Domin Gina 5
Domin Eris 7
KDC Jennifer 5
Hungry sparrow Stephen 6

For more details about the project and to access the information about how to run the program kindly visit the above directory : capstone-project-comp3900-m18b-segmentationfault-main/

About

🌎 World’s first Wait Management System 🚀for Restaurants 🍕 by integrating the Point of Sales Report and describing the problem in detail with suggesting our unique solution to it by implementing stock management, sales report, Advanced Queue management, Critical Data Visualization, real time-notification management and category sorting. 📝

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published