2023-11-15 15:36:18 +00:00
|
|
|
|
<div align=center>
|
|
|
|
|
<p>
|
|
|
|
|
<img src="https://img-hxy021.didistatic.com/static/starimg/img/j8lBA6yy201698840712358.jpg" width="300" align='center' />
|
|
|
|
|
</p>
|
|
|
|
|
<div>
|
|
|
|
|
<a href="https://github.com/didi/xiaoju-survey/graphs/contributors">
|
2024-05-16 06:50:25 +00:00
|
|
|
|
<img src="https://img.shields.io/badge/node-%3E=18-green" alt="commit">
|
2023-11-30 02:15:06 +00:00
|
|
|
|
</a>
|
2024-05-17 07:55:45 +00:00
|
|
|
|
<a href="https://app.codecov.io/github/didi/xiaoju-survey">
|
|
|
|
|
<img src="https://img.shields.io/codecov/c/github/didi/xiaoju-survey" alt="codecov">
|
|
|
|
|
</a>
|
2023-11-15 15:36:18 +00:00
|
|
|
|
<a href="https://github.com/didi/xiaoju-survey/issues">
|
|
|
|
|
<img src="https://img.shields.io/github/issues/didi/xiaoju-survey" alt="issues">
|
|
|
|
|
</a>
|
2024-05-16 06:50:25 +00:00
|
|
|
|
<a href="https://github.com/didi/xiaoju-survey/graphs/contributors">
|
|
|
|
|
<img src="https://img.shields.io/github/last-commit/didi/xiaoju-survey?color=red" alt="commit">
|
|
|
|
|
</a>
|
|
|
|
|
<a href="https://github.com/didi/xiaoju-survey/pulls">
|
|
|
|
|
<img src="https://img.shields.io/badge/PRs-welcome-%23ffa600" alt="pr">
|
2023-11-30 02:15:06 +00:00
|
|
|
|
</a>
|
2023-11-15 15:36:18 +00:00
|
|
|
|
<a href="https://xiaojusurvey.didi.cn">
|
|
|
|
|
<img src="https://img.shields.io/badge/help-%E6%96%87%E6%A1%A3-blue" alt="docs">
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2023-11-15 18:25:17 +00:00
|
|
|
|
<br />
|
2023-11-15 15:36:18 +00:00
|
|
|
|
|
2024-05-10 13:04:35 +00:00
|
|
|
|
  **XIAOJUSURVEY**是一套轻量、安全的**问卷系统基座**,提供面向个人和企业的一站式产品级解决方案,快速满足各类线上调研场景。
|
2023-11-15 15:36:18 +00:00
|
|
|
|
|
2024-05-10 13:04:35 +00:00
|
|
|
|
  内部系统已沉淀40+种题型,累积精选模板100+,适用于市场调研、客户满意度调研、在线考试、投票、报道、测评等众多场景。数据能力上,经过上亿量级打磨,沉淀了分题统计、交叉分析、多渠道分析等在线报表能力,快速满足专业化分析。
|
|
|
|
|
|
2024-05-10 14:52:41 +00:00
|
|
|
|
  开源项目以打造**调研基座**为核心,围绕**平台能力**、**工程架构**、**研发体系**进行建设,大家可以「快速」打造「专属」问卷系统:[快速了解生态发展理念](https://xiaojusurvey.didi.cn/docs/next/community/%E7%94%9F%E6%80%81%E5%BB%BA%E8%AE%BE)
|
2023-11-02 15:11:01 +00:00
|
|
|
|
|
2024-05-10 13:08:39 +00:00
|
|
|
|
# 功能简介
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
- 问卷管理:创、编、投、收、数据分析
|
|
|
|
|
|
2024-05-10 13:08:39 +00:00
|
|
|
|
- 多样化题型:单行输入框、多行输入框、单项选择、多项选择、判断题、评分、投票、...
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
- 用户管理:登录、注册、权限管理
|
|
|
|
|
|
|
|
|
|
- 数据安全:传输加密、脱敏等
|
|
|
|
|
|
2024-05-10 13:08:39 +00:00
|
|
|
|
> 更全的建设请查阅 [官方Feature](https://github.com/didi/xiaoju-survey/issues/45)
|
2024-02-06 13:46:49 +00:00
|
|
|
|
|
|
|
|
|
<img src="https://github.com/didi/xiaoju-survey/assets/16012672/dd427471-368d-49d9-bc44-13c34d84e3be" width="700" />
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
_**(个人和企业用户均可快速构建特定领域的调研类解决方案。)**_
|
|
|
|
|
|
2024-02-06 13:46:49 +00:00
|
|
|
|
# 技术
|
2024-05-23 03:37:53 +00:00
|
|
|
|
Web端:Vue3 + ElementPlus;C端多端渲染(在建,[申请加入共建](https://xiaojusurvey.didi.cn/docs/next/share/%E5%A6%82%E4%BD%95%E5%8F%82%E4%B8%8E%E8%B4%A1%E7%8C%AE#%E6%88%90%E4%B8%BA%E5%AE%98%E6%96%B9%E4%B8%93%E9%A1%B9%E5%BB%BA%E8%AE%BE%E8%80%85))
|
2024-02-06 13:46:49 +00:00
|
|
|
|
|
2024-05-23 03:37:53 +00:00
|
|
|
|
Server端:Nestjs + MongoDB;Java(在建,[申请加入共建](https://xiaojusurvey.didi.cn/docs/next/share/%E5%A6%82%E4%BD%95%E5%8F%82%E4%B8%8E%E8%B4%A1%E7%8C%AE#%E6%88%90%E4%B8%BA%E5%AE%98%E6%96%B9%E4%B8%93%E9%A1%B9%E5%BB%BA%E8%AE%BE%E8%80%85))
|
2024-02-06 13:46:49 +00:00
|
|
|
|
|
2024-05-23 03:37:53 +00:00
|
|
|
|
智能化基座:(在建)
|
2024-02-06 13:46:49 +00:00
|
|
|
|
|
2023-11-02 12:21:43 +00:00
|
|
|
|
# 项目优势
|
2023-11-02 12:12:37 +00:00
|
|
|
|
**一、具备全面的综合性和专业性**
|
|
|
|
|
|
2024-03-07 09:53:03 +00:00
|
|
|
|
- [制定了问卷标准化协议规范](https://xiaojusurvey.didi.cn/docs/next/agreement/%E3%80%8A%E9%97%AE%E5%8D%B7Meta%E5%8D%8F%E8%AE%AE%E3%80%8B)
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
领域标准保障概念互通,是全系统的基础和核心。基于实际业务经验,沉淀了两大类:
|
|
|
|
|
- 业务描述:问卷协议、题型协议
|
2023-11-15 15:36:18 +00:00
|
|
|
|
- 物料描述:题型物料协议,包含题型和设置器
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
2024-03-07 09:53:03 +00:00
|
|
|
|
- [制定了问卷UI/UX规范](https://xiaojusurvey.didi.cn/docs/next/design/%E3%80%8A%E8%AE%BE%E8%AE%A1%E8%A7%84%E8%8C%83%E3%80%8B)
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
设计语言是系统灵活性、一致性的基石,保障系统支撑的实际业务运转拥有极高的用户体验。包含两部分:
|
|
|
|
|
- 设计规范:灵活、降噪、统一
|
|
|
|
|
- 交互规范:遵循用户行为特征,遵循产品定位,遵循成熟的用户习惯
|
|
|
|
|
|
2024-03-07 09:53:03 +00:00
|
|
|
|
- [所见即所得,搭建渲染一致性高](https://xiaojusurvey.didi.cn/docs/next/document/%E8%AE%BE%E8%AE%A1%E5%8E%9F%E7%90%86/%E9%A2%98%E5%9E%8B%E5%9C%BA%E6%99%AF%E5%8C%96%E8%AE%BE%E8%AE%A1)
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
实际业务使用上包含问卷生成和投放使用,即对于系统的搭建端和渲染端。我们将题型场景化设计,以满足一份问卷从加工生产到投放应用的高度一致。
|
|
|
|
|
|
2024-03-07 09:53:03 +00:00
|
|
|
|
- [题型物料化设计,自由定制扩展](https://xiaojusurvey.didi.cn/docs/next/document/%E8%AE%BE%E8%AE%A1%E5%8E%9F%E7%90%86/%E9%A2%98%E5%9E%8B%E7%89%A9%E6%96%99%E5%8C%96%E8%AE%BE%E8%AE%A1/%E5%9F%BA%E7%A1%80%E8%AE%BE%E8%AE%A1)
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
题型是问卷最核心的组成部分,而题型可配置化能力决定了上层业务可扩展的场景以及系统自身可复用的场景。
|
|
|
|
|
题型架构设计上,主打每一类题型拥有通用基础能力,每一种题型拥有原子化特性能力,并保障高度定制化。
|
|
|
|
|
|
2024-03-07 09:53:03 +00:00
|
|
|
|
- [合规建设沉淀积累,安全能力拓展性高](https://xiaojusurvey.didi.cn/docs/next/document/%E5%AE%89%E5%85%A8%E8%AE%BE%E8%AE%A1/%E6%A6%82%E8%BF%B0)
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
数据加密传输、敏感信息精细化检测、投票防刷等能力,保障问卷发布、数据回收链路安全性。
|
|
|
|
|
|
|
|
|
|
**二、轻量化设计,快速接入、灵活扩展**
|
2024-03-07 09:53:03 +00:00
|
|
|
|
- [产品级开源方案,快速产出一套调研流程](https://xiaojusurvey.didi.cn/docs/next/document/%E4%BA%A7%E5%93%81%E6%89%8B%E5%86%8C/%E6%A6%82%E8%BF%B0)
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
围绕问卷生命周期提供了完整的产品化能力,包含用户管理: 登录、注册、问卷权限,问卷管理: 创、编、投、收、数据分析,可快速构建特定领域的调研类解决方案。
|
|
|
|
|
|
2024-03-07 09:53:03 +00:00
|
|
|
|
- [问卷设计开箱即用,降低领域复杂度](https://xiaojusurvey.didi.cn/docs/next/document/%E8%AE%BE%E8%AE%A1%E5%8E%9F%E7%90%86/%E9%97%AE%E5%8D%B7%E6%90%AD%E5%BB%BA%E9%A2%86%E5%9F%9F%E5%8C%96%E8%AE%BE%E8%AE%A1)
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
问卷组成具有高灵活性,此业务特征带来问卷编辑能力的高复杂性设计。我们将问卷编辑划分为五大子领域,进行产品能力聚类,同时指导系统模块化设计和开发。基于模块编排和管理,能够开箱即用。
|
|
|
|
|
|
2024-03-07 09:53:03 +00:00
|
|
|
|
- [二次开发成本低,轻松定制专属调研系统](https://xiaojusurvey.didi.cn/docs/next/document/%E5%BC%80%E5%8F%91%E6%89%8B%E5%86%8C/%E5%B7%A5%E7%A8%8B%E9%85%8D%E7%BD%AE%E5%8C%96)
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
全系统设计原则基于协议标准化、功能模块化、管理配置化,并提供了一些列完整的文档和开发及扩展手册。
|
|
|
|
|
|
2024-03-07 09:53:03 +00:00
|
|
|
|
- [部署成本低,快速上线](https://xiaojusurvey.didi.cn/docs/next/document/%E5%B7%A5%E7%A8%8B%E9%83%A8%E7%BD%B2/Docker%E9%83%A8%E7%BD%B2)
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
前后端分离,提供Docker化方案,提供了完善的部署指导手册。
|
|
|
|
|
|
2023-11-02 12:21:43 +00:00
|
|
|
|
# 快速启动
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
2024-05-10 17:18:38 +00:00
|
|
|
|
Node版本 >= 18.x,
|
2024-03-07 09:53:03 +00:00
|
|
|
|
[查看环境准备指导](https://xiaojusurvey.didi.cn/docs/next/document/%E6%A6%82%E8%BF%B0/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B)
|
2023-11-24 03:26:42 +00:00
|
|
|
|
|
2023-11-02 12:21:43 +00:00
|
|
|
|
复制工程
|
2023-11-02 12:12:37 +00:00
|
|
|
|
```shell
|
2023-11-15 18:25:17 +00:00
|
|
|
|
git clone git@github.com:didi/xiaoju-survey.git
|
2023-11-02 12:12:37 +00:00
|
|
|
|
```
|
|
|
|
|
|
2023-11-15 18:25:17 +00:00
|
|
|
|
## 服务端启动
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
2023-11-15 18:25:17 +00:00
|
|
|
|
### 方案一、快速启动,无需安装数据库
|
2024-02-06 13:46:49 +00:00
|
|
|
|
> _便于快速预览工程,对于正式项目需要使用方案二。_
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
2023-11-15 18:25:17 +00:00
|
|
|
|
#### 1、安装依赖
|
2023-11-02 12:12:37 +00:00
|
|
|
|
```shell
|
|
|
|
|
cd server
|
2023-11-15 18:25:17 +00:00
|
|
|
|
npm install
|
2023-11-02 12:12:37 +00:00
|
|
|
|
```
|
|
|
|
|
|
2023-11-15 18:25:17 +00:00
|
|
|
|
#### 2、启动
|
|
|
|
|
```shell
|
|
|
|
|
npm run local
|
|
|
|
|
```
|
|
|
|
|
|
2024-02-06 13:46:49 +00:00
|
|
|
|
> 服务运行依赖 [mongodb-memory-server](https://github.com/nodkz/mongodb-memory-server):
|
|
|
|
|
>
|
2023-11-16 13:42:27 +00:00
|
|
|
|
> 1、数据保存在内存中,重启服务会更新数据。<br />2、启动内存服务器新实例时,如果找不到MongoDB二进制文件会自动下载,因此首次可能需要一些时间。
|
2023-11-15 18:25:17 +00:00
|
|
|
|
|
2024-02-06 13:46:49 +00:00
|
|
|
|
### 方案二、(生产推荐)
|
2023-11-15 18:25:17 +00:00
|
|
|
|
|
|
|
|
|
#### 1、启动数据库
|
|
|
|
|
|
2024-03-20 06:17:45 +00:00
|
|
|
|
> 项目使用MongoDB:[MongoDB安装指导](https://xiaojusurvey.didi.cn/docs/next/document/%E6%A6%82%E8%BF%B0/%E6%95%B0%E6%8D%AE%E5%BA%93#%E5%AE%89%E8%A3%85)
|
2023-11-15 18:25:17 +00:00
|
|
|
|
|
2024-03-20 06:17:45 +00:00
|
|
|
|
- 配置数据库,查看[MongoDB配置](https://xiaojusurvey.didi.cn/docs/next/document/%E6%A6%82%E8%BF%B0/%E6%95%B0%E6%8D%AE%E5%BA%93)
|
|
|
|
|
|
|
|
|
|
- 启动本地数据库,查看[MongoDB启动](https://xiaojusurvey.didi.cn/docs/next/document/%E6%A6%82%E8%BF%B0/%E6%95%B0%E6%8D%AE%E5%BA%93#%E4%BA%94%E5%90%AF%E5%8A%A8)
|
2023-11-15 18:25:17 +00:00
|
|
|
|
|
|
|
|
|
#### 2、安装依赖
|
|
|
|
|
```shell
|
|
|
|
|
cd server
|
|
|
|
|
npm install
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
#### 3、启动
|
2023-11-02 12:12:37 +00:00
|
|
|
|
```shell
|
|
|
|
|
npm run dev
|
|
|
|
|
```
|
|
|
|
|
|
2023-11-02 12:21:43 +00:00
|
|
|
|
## 前端启动
|
|
|
|
|
### 安装依赖
|
2023-11-02 12:12:37 +00:00
|
|
|
|
```shell
|
|
|
|
|
cd web
|
|
|
|
|
npm install
|
|
|
|
|
```
|
2023-11-02 12:21:43 +00:00
|
|
|
|
### 启动
|
2023-11-02 12:12:37 +00:00
|
|
|
|
```shell
|
|
|
|
|
npm run serve
|
|
|
|
|
```
|
|
|
|
|
|
2023-11-15 18:25:17 +00:00
|
|
|
|
## 访问
|
|
|
|
|
### 问卷管理端
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
[http://localhost:8080/management](http://localhost:8080)
|
|
|
|
|
|
2023-11-15 18:25:17 +00:00
|
|
|
|
### 问卷投放端
|
|
|
|
|
创建并发布问卷。
|
2023-11-02 12:12:37 +00:00
|
|
|
|
|
|
|
|
|
[http://localhost:8080/render/:surveyPath](http://localhost:8080/render/:surveyPath)
|
|
|
|
|
|
2024-03-18 10:19:19 +00:00
|
|
|
|
<br /><br />
|
2023-11-02 12:21:43 +00:00
|
|
|
|
|
2024-03-28 02:49:05 +00:00
|
|
|
|
## QQ交流群
|
2024-05-29 03:45:16 +00:00
|
|
|
|
官方群会发布项目最新消息、建设计划和社区活动,欢迎你的加入:
|
2024-03-28 02:49:05 +00:00
|
|
|
|
|
2024-03-28 02:49:31 +00:00
|
|
|
|
[<img src="https://img-hxy021.didistatic.com/static/starimg/img/iJUmLIHKV21700192846057.png" width="210" />](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=P61UJI_q8AzizyBLGOm-bUvzNrUnSQq-&authKey=yZFtL9biGB5yiIME3%2Bi%2Bf6XMOdTNiuf0pCIaviEEAIryySNzVy6LJ4xl7uHdEcrM&noverify=0&group_code=920623419)
|
2024-03-28 02:49:05 +00:00
|
|
|
|
|
2024-05-24 03:28:49 +00:00
|
|
|
|
|
|
|
|
|
## 微信交流群
|
2024-05-29 03:45:16 +00:00
|
|
|
|
官方群会发布项目最新消息、建设计划和社区活动,欢迎你的加入。任何问题和合作可以联系小助手:
|
2024-05-24 03:28:49 +00:00
|
|
|
|
|
|
|
|
|
<img src="https://img-hxy021.didistatic.com/static/starimg/img/KXKvc7sjHz1700061188156.png" width="200" />
|
|
|
|
|
|
2024-03-18 10:19:19 +00:00
|
|
|
|
## Star
|
2024-04-09 03:46:22 +00:00
|
|
|
|
开源不易,如果该项目对你有帮助,请star一下 ❤️❤️❤️,你的支持是我们最大的动力。
|
2024-03-18 10:19:19 +00:00
|
|
|
|
|
|
|
|
|
[![Star History Chart](https://api.star-history.com/svg?repos=didi/xiaoju-survey&type=Date)](https://star-history.com/#didi/xiaoju-survey&Date)
|
|
|
|
|
|
|
|
|
|
## 记录
|
2024-04-09 03:46:22 +00:00
|
|
|
|
如果你使用了该项目,请记录反馈:[我在使用](https://github.com/didi/xiaoju-survey/issues/64),你的支持是我们最大的动力。
|
2024-03-18 10:19:19 +00:00
|
|
|
|
|
|
|
|
|
## 贡献
|
2024-05-29 03:45:16 +00:00
|
|
|
|
如果你想成为贡献者或者扩展技术栈,请查看:[贡献者指南](https://xiaojusurvey.didi.cn/docs/next/share/%E5%A6%82%E4%BD%95%E5%8F%82%E4%B8%8E%E8%B4%A1%E7%8C%AE),你的加入使我们最大的荣幸。
|
2024-03-18 10:19:19 +00:00
|
|
|
|
|
|
|
|
|
## Feature
|
2024-04-09 03:46:22 +00:00
|
|
|
|
关注每周推出的建设:[官方Feature](https://github.com/didi/xiaoju-survey/issues/45)
|
2024-01-18 09:17:06 +00:00
|
|
|
|
|
2024-03-18 10:19:19 +00:00
|
|
|
|
## CHANGELOG
|
2024-04-09 03:46:22 +00:00
|
|
|
|
关注重大变更:[MAJOR CHANGELOG](https://github.com/didi/xiaoju-survey/issues/48)
|
2024-01-18 09:17:06 +00:00
|
|
|
|
|
2024-05-24 02:19:50 +00:00
|
|
|
|
## 文章分享
|
2024-05-24 02:20:54 +00:00
|
|
|
|
|
|
|
|
|
1、[掘金](https://juejin.cn/user/3705833332160473/posts)、2、[InfoQ](https://www.infoq.cn/profile/7E08AC616A07B2/publish)
|
2024-05-24 02:19:50 +00:00
|
|
|
|
|
|
|
|
|
[欢迎投稿](https://xiaojusurvey.didi.cn/docs/next/article/%E7%AE%80%E4%BB%8B)
|