A full-stack e-commerce application with a product catalog, cart, and order management system.
- 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
- Backend: Spring Boot 3.2, Spring Data JPA
- Database: H2 (in-memory)
- Frontend: Vanilla JS
./mvnw spring-boot:rundocker-compose up --build| 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 |