Skip to content

Kaif-Nazir/Cartify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🛒 Cartify

A Spring Boot based shopping cart application with secure APIs for managing carts, items, and orders.

Java Spring Boot Maven License

🖼 Screenshots

Here is how Cartify looks in action:

Cartify Screenshot


📌 About the Project

  • Cartify is a RESTful shopping cart service built using Spring Boot and JPA.
  • It provides APIs to manage products, carts, and orders.

🚀 Tech Stack

  • Backend: Spring Boot, Spring Data JPA, Hibernate
  • Database: MySQL (or H2 for testing)
  • Build Tool: Maven
  • Language: Java 21+

📦 Helpful Frameworks & Libraries

  • Lombok → Reduces boilerplate code using annotations like @Getter, @Setter, @AllArgsConstructor, etc.
  • ModelMapper → Simplifies conversion between Entities and DTOs.
  • Hibernate → ORM for database interaction.

⚡ Features

✅ Create & manage shopping carts of unique users
✅ Add / update / remove items from cart
✅ Place an order with total amount calculation
✅ Exception handling & validations with GlobalExceptionHandler
✅ Secure endpoints with authentication & authorization


📂 Project Structure

  • │── controller/ → REST Controllers
  • │── model/ → Entities (Category , Cart, CartItem, Product, Order , OrderItems , User)
  • │── repository/ → JPA Repositories
  • │── service/ → Business Logic Layer
  • │── request/ → Request Objects
  • │── dto/ → Data Transfer Objects
  • │── security/ → ShopConfig

⚡ Setup Instructions

1. Clone the repository

  • Clone the repository to your local machine:
git clone https://github.com/Kaif-Nazir/Cartify.git
cd Cartify

2. Setup Database

  • Create a database named shoppingcart in MySQL.
  • Update application.properties with your username and password.
mvn clean install
mvn spring-boot:run

About

E-Cart Project With User Configuration To Buy Products Of Unique Category

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages