Grocery Management System - using JSP and Servlets + MYSQL DATABASE
Demo Video :- https://www.youtube.com/watch?v=splJQB1tync
Contact & Support For queries and support, feel free to reach out:
π Website: updategadh.com
π§ Email: Mail Rishabhsaini0204@gmail.com
π± WhatsApp: Chat Now
π± Telegram: Chat Now
π Instagram: Follow Now
π± Telegram Group: Join Now
πΊ YouTube Channel: Subscribe
The Grocery Management System is a web-based application built using Java JSP and Servlets to streamline online grocery shopping. The system enables users to browse and purchase groceries, manage their carts, and receive order confirmations via email. It is designed to enhance user experience through efficient order processing and stock management.
- User authentication (Registration & Login)
- Product browsing with filtering and search options
- Shopping cart management (Add, remove, update items)
- Secure checkout and payment processing
- Order history and tracking
- Email notifications for registration, order confirmation, and shipment updates
- Admin panel for product and order management
- HTML β Structure of the web pages
- CSS β Styling and responsiveness
- JavaScript & Bootstrap β User interactivity and design enhancements
- Java (JSP & Servlets) β Server-side functionality
- JDBC β Database connectivity
- MySQL β Data storage and management
- Apache Tomcat β Web server
- SMTP (JavaMail API) β Email notifications
Ensure the following software/tools are installed:
- Java JDK (v8 or later)
- Eclipse IDE (Enterprise Edition)
- Apache Tomcat Server (v8.0 or later)
- MySQL Database
- XAMPP Server
- Apache Maven (for dependency management)
-
Clone the Repository
git clone https://github.com/yourusername/Grocery-Management-System.git
-
Import the Project into Eclipse
- Open Eclipse IDE
- Click on File > Import > Existing Maven Projects
- Browse to the project folder and click Finish
-
Configure the Database
- Open phpMyAdmin (or MySQL Workbench)
- Create a new database, e.g.,
grocery_store_db - Import the provided SQL file (
database/grocery_store.sql)
-
Update Database Credentials
- Navigate to
src/config/DbConnection.java - Update the database credentials:
String url = "jdbc:mysql://localhost:3306/grocery_store_db"; String user = "root"; String password = "yourpassword";
- Navigate to
-
Configure Email Settings
- Go to Google Account Security Settings
- Enable 2-Step Verification
- Generate an App Password
- Update
src/config/MailConfig.java:final String EMAIL_USER = "your-email@gmail.com"; final String EMAIL_PASS = "your-app-password";
-
Run the Application
- Right-click on the project folder
- Select Run As > Run on Server
- Choose Apache Tomcat Server and click Finish
- Open the browser and visit:
http://localhost:8080/Grocery-Management-System/
- Email:
admin@gmail.com - Password:
admin
- Email:
guest@gmail.com - Password:
guest
Grocery-Management-System/
βββ src/
β βββ config/ # Database & Email Configuration
β βββ controllers/ # Servlets for handling requests
β βββ models/ # Business logic
β βββ views/ # JSP Pages
βββ web/
β βββ assets/ # CSS, JS, Images
β βββ WEB-INF/ # Web Configuration
βββ database/
β βββ grocery_store.sql # Database Schema
βββ pom.xml # Maven Dependencies
βββ README.md # Documentation
Contributions are welcome! Feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License.
Made with β€οΈ by decodeit


