Jing-Luo / Elema

Elema, an Online Food Ordering System

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Overview

Elema is the project for the course "Project Workshop of Database Systems" (CS357, SS2017) of SJTU. The aim of this project is to create a food-delivery system similiar to the Chinese webpage "ele.me".

The system consists of a backend including a webserver hosting the webpage, an interface written in PHP and a MySQL database storing all information, as well as a webpage as the frontend.

How to Install

To install the system on the local machine, at first an Apache Webserver and a MySQL database as well as PHP must be installed. The contents of the directory "website" must be placed into the "www" (or "htdocs" in some cases) directory of the Apache server. The SQL script "elema.sql" in the directory "Database" must be executed on the MySQL server. It will create necessary databases, tables, users, views, constraints and triggers. The webpage can now be accessed over "http://localhost" and the admin panel over "http://localhost/control".

Functional Requirements

Customer

  • A customer should be able to sign up his information to become a user in this system. Later he should be able to log in the system with his ID and password.

  • A customer should be able to order food through this system, including inputing his location, selecting near restaurants, choosing desired dishes in the menu, placing the order and checking the state of the order.

  • A customer should be able to see the progess of his orders on his profile page and comment his order by rating and writing comments.

Restaurant

  • A restaurant should be able to register as a food provider, log in the system and edit its information such as name, address and icon.

  • A restaurant should be able to receive the orders placed by customers and change the state to "processing", "in delivery" and "completed".

  • A restaurant should be able to manage its dishes, including adding new dishes, deleting old dishes and modifying the information of its meals.

E/R Model

Product Showcase

Customer

Restaurant

About

Elema, an Online Food Ordering System


Languages

Language:HTML 40.8%Language:JavaScript 21.4%Language:PHP 19.4%Language:SQLPL 6.8%Language:PLpgSQL 6.6%Language:CSS 5.0%Language:Perl 0.1%Language:Shell 0.0%