➡️ Grocery Store is a web application built using the Spring Framework and MySQL database. It is designed to provide a realistic e-commerce experience for purchasing fruits, vegetables, drinks, and more. The application includes a comprehensive cart and billing module, simulating the entire shopping process from selection to checkout. Additionally, users can download their bill as a PDF, adding to the convenience and realism of the shopping experience. To ensure security, the application utilizes Spring Security for authentication and authorization.
Login | Menu |
---|---|
- Secure login and registration module is written uisng spring security considering authorities as Admin User
- A variety of items including vegetables, fruits, and drinks are listed with their prices.
- Add to Cart: Users can add products to their shopping cart.
- Update Cart: Modify quantities or remove items from the cart.
- Cart Summary: Display a summary of items in the cart with total price.
- Apply Coupons: Enter coupon codes to receive discounts on orders.
- Coupon Validation: Validate coupon codes and apply discounts.
- Manual Payment Confirmation: Click to confirm payment without actual payment gateway integration (dummy implementation).
- Order Generation: After payment confirmation, an order is generated and a unique order ID is provided.
- Invoice Generation: Generate and download invoices as PDFs.
- Product Management: Add, edit, and delete products (Menu items) including vegetables, fruits, and drinks.
-
Download the Code
- Download the project code and unzip it.
-
Install an IDE
-
Import the Project into IDE
- Open your chosen IDE.
- Import the unzipped project into the IDE.
-
Update Maven
- In the IDE, perform a Maven update to ensure all dependencies are correctly configured.
-
Create the Database
- Set up a database using either Workbench or MySQL Server.
- Follow the schema instructions provided in the Schema section of this document to configure the database.
-
Run the Project
- Deploy and run the project on your local server.
Frontend | Backend | Databse |
---|---|---|
Html, css, Boostrap, jsp | Spring-framework, JDBC template, Spring-Security, Spring-MVC | Mysql |
End Points | Links |
---|---|
Login Page | /Myapplication-Default/myLoginPage |
Home Page | /Myapplication-Default/ |
Menu | /Myapplication-Default/Menu |
Add Item to Cart | /Myapplication-Default/addToCart/7 |
View Cart | /Myapplication-Default/myCart |
Checkout | /Myapplication-Default/checkout |
Payment Confirmation | /Myapplication-Default/paymentConfirmation |
Order Details | /Myapplication-Default/orderdItems |
View Bill | /Myapplication-Default/billing?order_id=Gro7652 |
End Points | Links |
---|---|
Create Menu | /Myapplication-Default/createMenu |
Add Item | /Myapplication-Default/addItems |
Edit Item | /Myapplication-Default/editItems/1 |
Delete Item | /Myapplication-Default/deleteItems/32 |