-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7ff7e3
commit 106a776
Showing
7 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Project Startup Document | ||
|
||
## Project Name | ||
|
||
**Dubbo Microservices Mall** | ||
|
||
## Project Background | ||
|
||
This project aims to build a microservices mall system based on Java and Dubbo. By adopting a modular design, different business functions are divided into independent services, enhancing the maintainability and scalability of the system. The system includes core business modules such as advertisements, shopping cart, currency conversion, email notifications, payments, product catalogs, recommendations, logistics, and checkout. | ||
|
||
## Project Goals | ||
|
||
The goals of this project are: | ||
|
||
1. Build a fully functional and scalable microservices mall system. | ||
2. Ensure efficient communication between service modules through Dubbo, guaranteeing system stability and high availability. | ||
3. Provide a user-friendly interface, allowing users to access the frontend page via a web browser and perform shopping operations. | ||
4. Support multiple currency conversions and online payment functions. | ||
|
||
## Service Module Overview | ||
|
||
1. **adService**: Advertisement service, responsible for managing and displaying advertisement content. | ||
2. **cartService**: Shopping cart service, responsible for handling user shopping cart operations, such as adding and removing items. | ||
3. **currencyService**: Currency service, responsible for providing conversion functions between multiple currencies. | ||
4. **emailService**: Email service, responsible for sending order confirmations, promotional information, and other email notifications. | ||
5. **paymentService**: Payment service, responsible for processing user online payment operations. | ||
6. **productCatalogsService**: Product catalog service, responsible for managing product classifications and information display. | ||
7. **recommendationService**: Recommendation service, providing product recommendations based on user behavior. | ||
8. **shippingService**: Logistics service, handling order logistics information and delivery services. | ||
9. **checkoutService**: Checkout service, summarizing the contents of the shopping cart, generating orders, and handling the checkout process. | ||
10. **fronted**: Frontend service, providing the user interface for browsing and shopping. | ||
|
||
## Service Startup Order | ||
|
||
To ensure the correct startup of the system, the services should be started in the following order: | ||
|
||
1. Start `adService` | ||
2. Start `cartService` | ||
3. Start `currencyService` | ||
4. Start `emailService` | ||
5. Start `paymentService` | ||
6. Start `productCatalogsService` | ||
7. Start `recommendationService` | ||
8. Start `shippingService` | ||
9. Start `checkoutService` last | ||
10. Start `fronted` last | ||
|
||
**Note: `checkoutService` and `fronted` must be started last.** | ||
|
||
## Accessing the Frontend Page | ||
|
||
After all services are started, the mall's frontend page can be accessed at: http://localhost:9000/static | ||
|
||
## Project Configuration | ||
|
||
### Environment Requirements | ||
|
||
- JDK 17+ | ||
- Apache Dubbo 3.0+ | ||
- Spring Boot 3.0+ | ||
|
||
### Configuration Files | ||
|
||
Each service’s configuration file is located in `src/main/resources/application.yml`. Please adjust the configuration information according to your environment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# 项目启动文档 | ||
|
||
## 项目名称 | ||
|
||
**Dubbo微服务商城** | ||
|
||
## 项目背景 | ||
|
||
该项目旨在构建一个基于Java和Dubbo的微服务商城系统。通过模块化设计,将不同的业务功能拆分为独立的服务,提升系统的可维护性和扩展性。系统包含广告、购物车、货币转换、邮件通知、支付、产品目录、推荐、物流和结账等核心业务模块。 | ||
|
||
## 项目目标 | ||
|
||
项目的目标是: | ||
|
||
1. 构建一个功能完备且可扩展的微服务商城系统。 | ||
2. 各服务模块之间通过Dubbo进行高效通信,保证系统的稳定性和高可用性。 | ||
3. 提供友好的用户界面,用户可以通过浏览器访问前端页面并进行购物操作。 | ||
4. 支持多种货币的转换和在线支付功能。 | ||
|
||
## 服务模块概述 | ||
|
||
1. **adService**: 广告服务,负责管理和展示广告内容。 | ||
2. **cartService**: 购物车服务,负责处理用户的购物车操作,如添加、删除商品等。 | ||
3. **currencyService**: 货币服务,负责提供多种货币之间的转换功能。 | ||
4. **emailService**: 邮件服务,负责发送订单确认、优惠信息等邮件通知。 | ||
5. **paymentService**: 支付服务,处理用户的在线支付操作。 | ||
6. **productCatalogsService**: 产品目录服务,管理商品的分类、信息展示等功能。 | ||
7. **recommendationService**: 推荐服务,根据用户行为推荐相关商品。 | ||
8. **shippingService**: 物流服务,处理订单的物流信息和配送服务。 | ||
9. **checkoutService**: 结账服务,汇总购物车内容,生成订单并处理结账流程。 | ||
10. **fronted**: 前端服务,提供用户界面,供用户浏览和操作。 | ||
|
||
## 服务启动顺序 | ||
|
||
为了确保系统的正确启动,各个服务的启动顺序如下: | ||
|
||
1. 启动 `adService` | ||
2. 启动 `cartService` | ||
3. 启动 `currencyService` | ||
4. 启动 `emailService` | ||
5. 启动 `paymentService` | ||
6. 启动 `productCatalogsService` | ||
7. 启动 `recommendationService` | ||
8. 启动 `shippingService` | ||
9. 最后启动 `checkoutService` | ||
10. 最后启动 `fronted` | ||
|
||
**注意:`checkoutService` 和 `fronted` 必须最后启动。** | ||
|
||
## 访问前端页面 | ||
|
||
所有服务启动完成后,可以通过以下地址访问商城的前端页面: http://localhost:9000/static | ||
|
||
## 项目配置 | ||
|
||
### 环境要求 | ||
|
||
- JDK 17+ | ||
- Apache Dubbo 3.0+ | ||
- SpringBoot 3.0+ | ||
|
||
### 配置文件 | ||
|
||
每个服务的配置文件均位于 `src/main/resources/application.yml`,请根据实际环境调整配置信息。 |