This is the fastest reviewer flow for running Laptopshop locally.
- JDK 17+
- MySQL 8+
Create an empty database named laptopshop.
Copy-Item .env.example .env
$env:SPRING_PROFILES_ACTIVE = "local"
$env:MYSQL_HOST = "localhost"
$env:MYSQL_PORT = "3306"
$env:MYSQL_DATABASE = "laptopshop"
$env:MYSQL_USER = "root"
$env:MYSQL_PASSWORD = "your_mysql_password"
$env:APP_DEMO_SEED = "true"
$env:APP_BASE_URL = "http://localhost:8081"local mode will auto-create:
- demo admin account
- demo customer account
- sample products
- sample order history
- sample cart
With Maven:
.\mvnw.cmd spring-boot:run "-Dspring-boot.run.arguments=--server.port=8081"Or with Docker Compose:
docker compose up --buildPublished container image:
docker pull nguyenson1710/laptopshop-spring-boot-mvc:latestThis Docker Hub image is the official published container for Laptopshop. The source repository remains JasonTM17/Laptopshop_Spring_Boot_MVC.
- Admin:
admin@laptopshop.dev/Admin@123 - Customer:
customer@laptopshop.dev/Customer@123
- Storefront:
/ - Catalog:
/products - Product detail:
/product/1 - Customer:
/cart,/order-history,/account - Admin:
/admin - Health check:
/actuator/health
Full project setup and architecture notes live in README.MD.
More detail: