摘要
B2C网上花店系统,即商对客的网上鲜花销售系统。目前市场上虽然有一些同类相关系统,但是所采用的技术大多比较过时,任何一款系统都不应在技术不断更新、进步的今天而止步。本系统采用新兴的Vue.js作为前端开发框架,后端采用SpringBoot框架,同时结合了Logstash、Kafka处理用户日志文件,采用V-Charts插件生成图表。系统的使用者,第一感受是前端的UI设计,本系统采用Vue.js作为前端开发框架,开发者可以比较轻松的设计出样式美观的UI,同时Vue.js作为组件化开发语言,也非常符合当下IT行业的开发模式。本系统的核心是鲜花销售,为了促进用户消费,加入了大数据相关技术,本系统采用Logstash抽取用户日志文件进行数据分析并存入Kafka,SpringBoot集成了Kafka,将Kafka中的数据实时地显示在系统中。同时采用V-Charts插件生成各类统计图表,让商家可以更直观地了解系统的用户构成、鲜花的销量、价格变化、星级评价等,由此来帮助商家分析出购买需求较大的鲜花。
关键词:网上花店,B2C,数据分析,统计图表
Abstract
B2C online flower shop system, that is business to customer online flower sales system.Although there are some similar related systems in the market at present, most of the technologies adopted are outdated, and any system should not stop at today when the technology is constantly updated and improved.This system uses the emerging Vue.js as the front-end development framework, and the back-end uses the SpringBoot framework. Meanwhile, it combines Logstash and Kafka to process user log files, and uses the V-Charts plug-in to generate charts.Users of the system first feel the UI design of the front end. This system uses Vue.js as the framework of the front end development, so developers can easily design beautiful UI.The core of this system is the sales of flowers. In order to promote the consumption of users, the relevant technology of big data is added. The system uses Logstash to extract the user log file for data analysis and store it in Kafka.At the same time, the plug-in V-Charts is used to generate all kinds of statistical charts, so that merchants can more intuitively understand the user composition of the system, sales volume of flowers, price change, star rating and so on, so as to help merchants analyze flowers with great purchase demand.
Key words: online flower shop, B2C, data analysis, statistical chart
目录
1 系统概述 1
1.1 项目研究背景和意义 1
1.2 课题目的 1
1.3 研究现状 2
1.4 研究目标 2
2 相关技术介绍 3
2.1 SpringBoot 3
2.2 Vue.js 3
2.3 MVVM框架 4
2.4 Kafka 4
2.5 Logstash 5
2.6 Gradle 5
2.7 MySql 6
3 需求分析 7
3.1 开发环境及其需求 7
3.2 可行性分析 7
3.3 系统功能需求 7
4 总体设计 14
4.1 总体设计 14
4.2 模块设计 15
5 详细设计 16
5.1 数据库设计 16
5.2 Logstash抽取 21
5.3 Kafka配置 22
5.4 主页推荐版块 22
5.5 用户购买鲜花流程 22
6 平台实现 27
6.1 鲜花展示页面 27
6.2 图表展示页面 28
6.3 日志抽取与处理 31
7 系统测试 34
7.1 软件测试概述 34
7.2 软件测试目的 34
7.3 软件测试用例设计 34
8 总结与展望 47
参考文献 48
致谢 49