Laptopshop is maintained as a portfolio-grade Spring Boot MVC project. Keep changes small, tested, and consistent with the current architecture.
- Copy
.env.exampleto.env. - Create a MySQL database named
laptopshop. - Run with the
localprofile:
$env:SPRING_PROFILES_ACTIVE = "local"
$env:MYSQL_PASSWORD = "your_mysql_password"
.\mvnw.cmd spring-boot:runRun:
.\mvnw.cmd test
.\mvnw.cmd package
docker build -t laptopshop:local .For UI changes, include screenshots from the affected routes and smoke test:
/ -> /products -> /product/1 -> /cart -> /order-history -> /admin
- Keep controller logic thin and place business rules in services.
- Keep JSP changes aligned with the shared CSS tokens and components.
- Avoid hard-coded secrets; use environment variables and profiles.
- Add tests when changing business rules, security behavior, or routes.