# BestQA **Repository Path**: SmartCloud/BestQA ## Basic Information - **Project Name**: BestQA - **Description**: 基于DDD思想与ENode框架的开源问答系统 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 214 - **Created**: 2015-07-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ####系统工程简介: - 系统采用的ENode框架结构图如下: ![系统结构图](http://git.oschina.net/uploads/images/2015/0721/091308_ebe27b54_362401.png "在这里输入图片标题") - 程序运行效果图如下: ![主界面](http://git.oschina.net/uploads/images/2015/0710/232749_9fad6bd1_362401.jpeg "BestQA主界面") ####系统工程结构: 1. BestQA.Commands :即为CQRS框架中的Command 2. BestQA.CommandSubscribe: 为系统命令的订阅处理程序 3. BestQA.Domain: 核心领域层 4. BestQA.EventSubscribe: 为领域事件订阅处理程序 5. BestQA.MessageQueue: 系统消息队列程序 6. BestQA.MockRepository:系统数据存储处理,采用EF方式 7. BestQA.QueryInterface:系统查询接口,即CQRS中的Query 8. BestQA.Web:基于MVC的用户操作界面,前端采用angularjs 9. Lee.Infrastructure:公共类库,与平台无关 ####启动顺序: - 创建数据库:BestQA,并使用InitTables.sql进行初始化; - 依次运行: 1. BestQA.MessageQueue.exe 2. BestQA.CommandSubscribe.exe 3. BestQA.EventSubscribe.exe 4. BestQA.Web(注意修改连接字符串) ####典型的业务处理流程: 发布一个新问题: - 用户通过WEB发送CreateNewQuestionCmd - BestQA.MessageQueue收到命令 - BestQA.CommandSubscribe收到通知并处理,然后发送QuestionCreatedEvent - BestQA.MessageQueue收到领域事件 - BestQA.EventSubscribe处理领域事件,把结果写入数据库