Skip to content

phuc16/CNPM

Repository files navigation

POS SYSTEM

Software Engineering (CO3001)-DH_HK211 assignment project

Author: Nguyễn Diệu Ái, Nguyễn Kế Đạt, Trương Hoàng Phúc, Đặng Quốc Thanh, Huỳnh Đức Thịnh, Nguyễn Phúc Thịnh, Nguyễn Ngô Thanh Trúc.

Project target

We build this system to make it easier for customers to use the restaurant's services and also help the restaurant manage data. This system includes managing tables, ordering food, alerts, billing, credit card processing and viewing order records.

This app can be use by 4 users:

  • Customer
  • Receptionist
  • Clerk
  • Manager

Each actor has a corresponding interface that performs different functions.

Instruction

Import database from ./Database/DB.sql

Change database connection's informations

Update informations (host, user, password, database, port) of your connection in ./server/dbConn.js

var dbConn = mysql.createConnection({
    host: "127.0.0.1",
    user: "root",
    password: "26122001",
    database: "db",
    port: "3306",
    dateStrings: true
});

Run server

cd server
npm install (to install all dependencies required if necessary)
node server

Server will run at http://localhost:3001.

Run app

App has 4 views: Customer-view, Clerk-view, Receptionist-view and Manager-view.

In the project directory, you can:

Run Customer-view mode:

cd cusview
npm install (to install all dependencies required if necessary)
npm start
  • After run the Customer-view project, add [/Table Number] after the link on the web like [http://localhost:3000] to [http://localhost:3000/1] to notify the POS system which table you are currently on and get access to the menu (Table Number ranges from 1 to 25, out of that range will cause error)

Run Clerk-view mode:

cd clerkview
npm install (to install all dependencies required if necessary)
npm start

Run Receptionist-view mode:

cd receptionistView
npm install (to install all dependencies required if necessary)
npm start

Run Manager-view mode:

cd managerview
npm install (to install all dependencies required if necessary)
npm start

Open http://localhost:3000 to view it in the browser.

Learn More

You can learn more in our Github Repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors