Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce API

A full-stack e-commerce application with a product catalog, cart, and order management system.

Features

  • Product catalog with search and category filtering
  • Stock management with automatic deduction on orders
  • Order lifecycle management (PENDING → CONFIRMED → SHIPPED → DELIVERED)
  • Shopping cart (client-side) with quantity selection
  • Order history with status updates

Tech Stack

  • Backend: Spring Boot 3.2, Spring Data JPA
  • Database: H2 (in-memory)
  • Frontend: Vanilla JS

Running Locally

./mvnw spring-boot:run

Open http://localhost:8083

Running with Docker

docker-compose up --build

API Endpoints

Method Path Description
GET /api/products List products (?category=, ?search=)
GET /api/products/{id} Get product
POST /api/products Create product
PUT /api/products/{id} Update product
DELETE /api/products/{id} Soft-delete product
GET /api/orders List all orders
GET /api/orders/{id} Get order
POST /api/orders Place an order
PATCH /api/orders/{id}/status Update order status

About

A full-stack e-commerce application with a product catalog, cart, and order management system.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages