Pizza Ordering Web app using Java Spring MVC Framework
-
Data Binding
-
JDBC SQL Injection
-
Sending Email (using JavaMailer)
-
PDF Generation (using iTextPdf)
-
SMS on Registration (using Twilio)
-
File Upload
-
Download and Install Spring Tool Suite(STS)/Eclipse.
-
Download or Clone "The-Pizza-Wagon" from here.
-
Import "the-pizza-wagon" into STS/Eclipse.
-
Verify and Enter your database username and password at "the-pizza-wagon/src/main/webapp/WEB-INF/spring/root-context.xml".
-
Create a database "the-pizza-wagon" and import the database from "database/the-pizza-wagon.sql".
-
Make a Twilio account to get Account SID, Auth Token and Twilio Mobile Number and substitute them in the placeholders at "the-pizza-wagon/src/main/java/com/rjsk/mvc/controllers/SignupController.java".
-
Place "cacert.pem" inside any directory inside C drive.
-
Open php.ini and uncomment the line "curl.cainfo = " by removing the semicolon at the start of the line.
-
Update curl.cainfo="C:/path/of/file/cacert.pem" and restart WAMP/XAMPP.
-
Substitute your Gmail account credentials in the placeholders at "the-pizza-wagon/src/main/webapp/WEB-INF/spring/root-context.xml".
-
Substitute your Birthday/Catering Order as well as Contact Queries receiving Email Address at “the-pizza-wagon/src/main/java/com/rjsk/mvc/controllers/EmailController.java”.
-
Allow use of less secured apps in the Settings Panel of your Gmail Account (just in case Sending Emails is not working).
-
Get the Google Map API Key from google and substitute it in the placeholder at “the-pizza-wagon/src/main/webapp/WEB-INF/views/findus.jsp”.
-
Twilio only sends SMS between morning 9am to evening 9pm.
-
Sample PDF is available at "pdf/SampleOrder.pdf".