Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

XYZ Retail - Online Shopping Cart

A Spring Boot based shopping cart and e-commerce backend for XYZ Retail.

Overview

This repository contains a Java Spring Boot application that provides REST APIs for:

  • Authentication and JWT-based login/registration
  • Product browsing and search
  • Shopping cart management
  • Order placement and order history
  • Wishlist management
  • Product reviews and ratings

Tech Stack

  • Java 17
  • Spring Boot 3.2.5
  • Spring Web
  • Spring Data JPA
  • Spring Security
  • JWT (JJWT)
  • MySQL
  • Lombok
  • Maven

Project Structure

The main application lives under the shopping-cart/ directory.

Features

  • User registration and login
  • Secure API endpoints with JWT authentication
  • Product catalog with pagination and search
  • Category-based product browsing
  • Add, update, and remove cart items
  • Place orders and manage order status
  • Wishlist support
  • Product reviews with average rating updates

Getting Started

Prerequisites

  • Java 17+
  • Maven 3.8+
  • MySQL database

Run the application

From the shopping-cart/ directory:

mvn spring-boot:run

Build the project

mvn clean install

API Highlights

  • POST /api/auth/register
  • POST /api/auth/login
  • GET /api/products
  • GET /api/products/{id}
  • GET /api/products/search?q=...
  • GET /api/cart
  • POST /api/cart/add
  • POST /api/orders/place
  • GET /api/wishlist
  • GET /api/reviews/{productId}

Deployment

A live deployment is linked in the repository homepage.

License

No license file is currently included.

About

mern

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages