Skip to content

Grodelek/Spring-e-commerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Leaf 🌱

E-Leaf is a web application built using the Spring Framework. It enables product management, a shopping cart feature, and order processing. The project is based on the MVC (Model-View-Controller) architecture, ensuring clean code separation between business logic, data handling, and presentation layers.


📋 Table of Contents

  1. Features
  2. Technologies
  3. Requirements
  4. Installation and Setup
  5. Project Structure

✨ Features

  • Product Management:
    • Add, edit, delete,filter,sort and view products.
  • Shopping Cart:
    • Add products to the cart, remove them, or update quantities.
  • Order Processing:
    • Create and manage orders.
  • User Authentication:
    • Register and log in users with different roles (e.g., admin, customer).
  • Admin Panel:
    • Manage products on page and change roles of users.

🛠 Technologies

  • Backend: Java 17, Spring Boot, Spring MVC, Spring Data JPA, Hibernate
  • Frontend: HTML, CSS, Thymeleaf
  • Database: MySQL
  • Testing: JUnit
  • Other Tools: Maven, Lombok, IntelliJ IDEA

📂 Requirements

  • Java: 17 or later
  • Maven: 3.8.0 or later
  • Web Browser: Any modern browser (for testing the interface)

🚀 Installation and Setup

  1. Clone the repository:
    git clone https://github.com/Grodelek/Spring-e-commerce.git
    cd Spring-e-commerce
  2. Build the project using Maven:
    mvn clean install
  3. Run the application:
    mvn spring-boot:run
  4. Access the application in your browser:
    http://localhost:8080

🧱 Project Structure

The project follows the MVC architecture:

Model: Represents application data.
Location: src/main/java/com/example/ecommerce/model
Examples: Product, User.

Controller: Handles HTTP requests and sends data to views.
Location: src/main/java/com/example/ecommerce/controller
Examples: ProductController, CartController.

View: HTML templates generated using Thymeleaf.
Location: src/main/resources/templates

Additional Directories:

Repository: Handles database operations using Spring Data JPA.
Location: src/main/java/com/example/ecommerce/repository

Service: Contains business logic.
Location: src/main/java/com/example/ecommerce/service

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published