How averma577/shopping_cart works
Project type and purpose
• This is a full-stack e-commerce web application (“ShopiCart”) built with Spring Boot on the backend and server-rendered HTML/CSS/JS (Thymeleaf templates) on the frontend.
• It provides product browsing, cart management, user registration/login, order placement, and an admin panel for CRUD operations on products and categories.
File structure
• Top-level artifacts
– Dockerfile, pom.xml (Maven build), mvnw scripts.
– src/main/java/com/ecom: package hierarchy.
– src/main/resources: static assets (CSS, JS, images) and Thymeleaf templates.
• Layered package structure
– configure: Spring Security setup, authentication handlers, custom user details.
– controller: MVC controllers (HomeController, UserController, AdminController).
– entity: JPA entities (UserDtls, Product, Category).
– repository: Spring Data JPA interfaces.
– service + serviceImpl: business logic interfaces and implementations.
– util: constants and common utilities.
• Resources
– application.properties for datasource and security.
– static files served under /static.
– templates under /templates (user/admin views).
• Deployment
– Dockerfile suggests containerization.
– Maven wrapper indicates reproducible builds.
README for additional insights
• Tech stack mentions Spring Boot, Hibernate/JDBC, MySQL/H2.
• Features: user auth, product listing, add-to-cart, order placement, admin panel.
• Architecture hints: MVC pattern and layered service/repository.