←Back to projectsE-Commerce REST API · Spring Boot Backend
2025
A Spring Boot backend for product, category, and cart management, with JWT authentication and role-based access control.
Tech stack
JavaSpring BootSpring SecurityMySQLJPA/HibernateJUnit5PostmanDocker
What it does
- Full CRUD across five entities: Products, Categories, Users, Carts, and Cart Items
- 24 REST endpoints across users, products, categories, and carts
- JWT-based authentication with role-based access control (ADMIN/USER)
- Service and Repository layers separating business logic from data access
- Global exception handling via @ControllerAdvice with structured error responses
- Unit tests with JUnit5, and all 24 endpoints verified in Postman across success, validation failure and unauthorised cases
- Containerised with Docker for consistent local environments
Explore the deployed API in Swagger using the pre-filled demo credentials.