This project utilizes Spring Boot, JDBC, JSP and Servlet technologies to create an E-Commerce platform.
📝 Features:
- ADMIN MODULE + USER MODULE
- MVC Architecture
- CRUD Operations
- Intuitive and responsive user interface design
⚙️ How To Run
Prerequisites:
- IntelliJ IDEA (Ultimate or Community Edition)
- MySQL Database
- XAMPP
-
Clone the Repository:
- Clone this repository to your local machine.
-
Database Setup:
- Create a database named
springproject
. - Import the
springproject.sql
file into the database to create all necessary tables.
- Create a database named
-
Open Project in IntelliJ IDEA:
- Open IntelliJ IDEA.
- Navigate to File > Open and select the project directory.
-
Install Required Plugins:
- Ensure you have the following plugins installed in IntelliJ IDEA:
- Spring Assistant
- Tomcat and TomEE Integration (for deploying the application locally)
- Ensure you have the following plugins installed in IntelliJ IDEA:
-
Configure MySQL Driver:
- Download the MySQL JDBC driver and add it to your project dependencies.
- Alternatively, you can add it to your Maven or Gradle build file.
-
Run the Project:
- Right-click on the project and select Run 'Application'.
- Open: http://localhost:8080/
MVC (Model-View-Controller) is a software architectural pattern commonly used for developing user interfaces. In MVC:
- Model: Represents the data and business logic of the application. It interacts with the database and performs CRUD operations.
- View: Represents the presentation layer of the application. It displays data to the user and sends user inputs to the controller.
- Controller: Acts as an intermediary between the model and the view. It processes user requests, retrieves data from the model and updates the view accordingly.
- The
AdminController.java
andUserController.java
files contain mapping-based functions that return file names. - JSP files located in
src/main/webapp/views
directory are executed accordingly.
- ADMIN Module: http://localhost:8080/admin
- Username: admin
- Password: 123 (Default; can be changed in the database)
- USER Module:
- Username: Atharva
- Password: 1234
This project was created with reference to E-commerce website. We appreciate their contribution to the development community.
Feel free to explore and contribute to this project!