View on GitHub

online-pizza-ordering-system

This project was implemented as a training end assignment project that implements online pizza ordering system using angular and external libraries of spring mvc inside tomcat server.

online-pizza-ordering-system

This project that implements online pizza ordering system using angular and spring mvc in tomcat with mysql.

About Project

This project has been given a simple name for convenience as PizzaWale

For this name, We don't claim any copyright. (Unless this hasn't been claimed... :P)


Features of this product

Technical Specifications

Technologies

Frontend:

HTML, CSS, JS, AngularJS

Backend:

Java, SpringMVC, MySQL


Pre-Requisites

1.This project needs to be run with the help of Apache Tomcat: Refer This Link

Kindly install the Apache Tomcat. Current code is tested on Apache Tomcat/9.0.52

2.This project uses MySQL server for DB Operations. Refer This Link

Kindly set-up a DB Server with default configurations and host it locally. Current code is configured for the MySQL Community Server 8.0.26 @ jdbc:mysql://localhost:3306/, root, root

Requirements Check List


Building and Running the Project

We hope you have met the required Pre-Requisites mentioned above.

Kindly follow the below steps to run the project.

Navigate to this link to see the home page of started application.

You can register to create new user and then login since the user will be added into DB.

To access previous users with admin, employee etc. profiles the credentials are avaialble in the code as well as they can be decoded from hashed passwords in the SQL script via md5 algorithm.


Direct Run

Now you can even directly deploy and use the application. :rocket:

As mentioned above are the two pre-requisite softwares check here

  1. You can initialize the mysql db with the script given. (Pizzawale 20190821 0922.sql)
  2. Start the tomcat server and navigate to Manager App which would be mostly here Further Navigate to Deploy Section > Deploy directory or WAR file located on server where you can define the
    • Context Path : /PizzaWale
    • WAR or Directory path : ****
  3. Click on Deploy to host the application on local system

Navigate to this link to see the home page of started application.


Deploying Using Docker :rocket:

GREAT NEWS!!!…. :smiley:

Now this application is available as on docker images also. There are two options available.

Docker Engine is the only pre-requisite for this

1 Using docker-compose

The pizzawale.yaml file has all the needful configurations to deploy this application.

  1. Clone the repository.
  2. Run startup.sh or this command to start the application: docker-compose -f .\pizzawale.yaml up -d This command will fetch the existing images of mysql and tomcat server and create their images customized with our application and connect them using docker’s internal network. (This step might take some time in the first run to download all the images.)
  3. Run shutdown.sh or this command to stop and remove the containers of this application: docker-compose -f .\pizzawale.yaml down

Navigate to this link to see the home page of started application.

2 Using docker images with scripts

Here there are couple of scripts(docker commands eventually) which will create the images, containers and then connect them on an internal network.

The ready-made images for the application are already available in the docker hub repository of dhruvinrsoni@dockerhub by names of pizzawale-mysqldb, pizzawale-tomcatserver

Sr No. Script Name Descirption
1 pull.sh to fetch the images required for the application and available on docker hub.
2 create.sh to create containers and network, connect them in same network.
3 deploy.sh to start the containers which will start the application eventually. By this the application should get up with some initial time delay required for startup. Navigate to this link to see the home page of started application.
4 undeploy.sh to stop the containers which will undeploy the application.
5 clean.sh to remove the containers and the network.

Default Users

Below is the table with the credentails of the default users.

Email Id Password
dhruvin@gmail.com dhruvin
tommy@gmail.com t
dhruvin@pizzawale.com dhruvin
admin@pizzawale.com admin
employee@pizzawale.com emp

Screenshots

PizzaWale-home-welcome-page

PizzaWale-home-welcome-page.png

PizzaWale-contact-us-page

PizzaWale-contact-us-page.png

PizzaWale-registration-signup-form

PizzaWale-registration-signup-form.png

PizzaWale-login-page

PizzaWale-login-page.png

PizzaWale-order-page-1

PizzaWale-order-page-1.png

PizzaWale-order-page-2

PizzaWale-order-page-2.png

PizzaWale-order-page-3

PizzaWale-order-page-3.png

PizzaWale-order-page-4

PizzaWale-order-page-4.png

PizzaWale-order-in-cart-summary

PizzaWale-order-in-cart-summary.png

PizzaWale-order-checkout-payment-page

PizzaWale-order-checkout-payment-page.png

PizzaWale-logout-successful

PizzaWale-logout-successful.png

PizzaWale-employee-login-order-status-updation

PizzaWale-employee-login-order-status-updation.png

PizzaWale-admin-login-menu-updation-1

PizzaWale-admin-login-menu-updation-1.png

Thank You !