基于Spring Boot + Vue 3的完整商城系统
- Spring Boot 2.7.x
- MySQL 8.0
- MyBatis Plus
- RabbitMQ
- Redis
- SA-Token
- Elasticsearch
- Vue 3
- JavaScript
- HTML5
- CSS3
- Element Plus
- 用户注册登录
- 商品管理
- 购物车
- 订单管理
- 库存管理
- 搜索功能
- 支付功能(模拟)
- 消息队列
- 缓存管理
├── backend/ # Spring Boot后端
├── frontend/ # Vue前端
├── docker-compose.yml # 容器编排
└── README.md
docker-compose up -dcd backend
mvn spring-boot:runcd frontend
npm install
npm run dev- 前端应用: https://work-1-lirpvazmedngkjfm.prod-runtime.all-hands.dev (端口 12003)
- 后端API: http://localhost:8080/api
- 测试页面: /workspace/58686/test.html
- 后端 Spring Boot: 端口 8080 ✅
- 前端 Vue 3: 端口 12003 ✅
- MySQL 数据库: 端口 3306 ✅
- Redis 缓存: 端口 6379 ✅
- 5个商品分类(手机数码、电脑办公、家用电器、服装鞋帽、图书音像)
- 10个测试商品
- 1个测试用户(testuser/123456)
curl -X POST http://localhost:8080/api/user/register \
-H "Content-Type: application/json" \
-d '{
"username": "testuser",
"password": "123456",
"confirmPassword": "123456",
"email": "[email protected]"
}'curl -X POST http://localhost:8080/api/user/login \
-H "Content-Type: application/json" \
-d '{
"username": "testuser",
"password": "123456"
}'curl http://localhost:8080/api/category/listcurl "http://localhost:8080/api/product/list?page=1&size=10"- 用户注册登录系统
- SA-Token 认证授权
- 商品分类管理
- 商品列表查询(分页)
- 购物车功能
- 订单管理系统
- 数据库设计和初始化
- 前后端完整架构
- 支付模拟功能
- RabbitMQ 消息队列集成
- Elasticsearch 搜索功能
- 前后端完整联调