1 Star 0 Fork 109

彡趁酒诗年华灬 / education-cloud

forked from wgw / education-cloud 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

Build Status Build Status Coverage Status Coverage Status Downloads

分布式在线教育

一个各行业都适用的分布式在线教育系统。该系统基于Spring Cloud Alibaba微服务化开发平台, 核心技术采用Spring Boot 2.2.0以及Spring Cloud (Hoxton.RELEASE) 相关核心组件,采用Nacos注册和配置中心,前端采用vue-element-admin组件

官方QQ群(加群免费获取sql脚本)

分布式在线教育1093045884 可加

QQ群:1093045884

相关工程

在线教育系统(roncoo-education):码云地址
前端门户工程(education-cloud-web-ui):码云地址
后台管理工程(education-cloud-web-admin):码云地址

在线教育系统采用前后端分离架构,前端为独立工程。
roncoo-education是后台工程,核心框架:Spring Cloud Alibaba roncoo-education-web是前端门户工程,核心框架:Vuejs + Nuxt.js
roncoo-education-admin是后台管理工程,核心框架:vue-element-admin

技术选型

  • 服务注册与发现:Nacos
  • 熔断器:Hystrix + Turbine
  • 客户端负载均衡:Ribbon
  • 内部服务调用:Feign
  • 网关:Spring Cloud Zuul
  • 认证鉴权: JWT
  • 程序监控:Spring Boot Admin / Spring Boot Actuator
  • 分布式配置中心:Nacos
  • 数据库:MySQL 5.7
  • 部署:Docker + docker-compose 正在支持
  • 构建工具:Maven
  • 后台 API 文档:swagger-bootstrap-ui
  • 文件系统:阿里云
  • 缓存:Redis
  • 前端:vue

项目介绍(如果对你有用,请给个star!)

roncoo-education 致力于打造一个各行业都适用的分布式在线教育系统。系统采用前后端分离模式,前台采用vue.js为核心框架,后台采用Spring Cloud Hoxton.RELEASE、Spring Cloud JWT& Spring Cloud Alibaba为核心框架。系统目前主要功能有课程点播功能,支持多家视频云的接入,课程附件管理功能,支持多家存储云的接入,讲师管理功能,支持讲师入驻功能,可以帮助个人或者企业快速搭建一个轻量级的在线教育平台。 该系统具有如下特点:

  • 前后端分离架构,客户端和服务端纯Token交互;

  • 微服务防护,客户端请求资源只能通过微服务网关获取;

  • 集成Prometheus,SpringBootAdmin,多维度监控微服务;

  • 集成Spring Cloud Alibaba Nacos服务治理和集中配置管理;

  • 集成Zuul网关熔断机制

  • 集成Swagger接口文档 为swagger-bootstrap-ui,界面更友好,通过网关统一聚合后端微服务API文档

  • 微服务Docker化,使用Docker Compose一键部署;

  • 集成Skywalking APM(开发中);

  • 集成ELK,集中管理日志,便于问题分析(开发中);

  • 支持Kubernetes集群部署(开发中);

  • 提供详细的使用文档和搭建教程 (不断完善中);

前台主要功能介绍

  • 首页功能,导航模块(自定义导航设置),广告模块(自定的轮播设置),课程模块(自定义课程设置)
  • 列表功能,分类模块(自定义分类设置),搜索模块(自定义搜索设置)
  • 课程详情页功能,课程介绍、目录的展示和购买、播放功能等
  • 个人中心,具有个人信息设置、密码修改、订单管理、学习记录等功能
  • 讲师中心,讲师信息管理、课程管理(课程的添加、修改)、收益管理等功能

后台主要功能介绍

  • 权限管理功能,多角色多用户自定义配置
  • 系统配置功能,自定义进行站点配置及第三方参数配置
  • 讲师管理功能,讲师申请入驻,后台具有审核功能
  • 课程管理功能,讲师管理自有课程,后台具有审核功能
  • 用户登录功能,同一时间只允许同一个账号在同一个地方登录,防止账号共享
  • 广告管理功能,后台自定义广告设置,增加营销效果
  • 支付功能模块,待集成微信和支付宝支付

部署方面, 可以采用以下4种方式,并会陆续公布jenkins集合以下4种部署方式的脚本和配置文件:

  • IDEA 启动
  • jar部署
  • docker(基于rancher的容器化部署)部署
  • k8s部署 (正后续支持)

演示地址

前端演示地址:领课教育 | 后台演示地址:运营后台

项目运行(部署文档完善中....)

Windows环境部署(IDEA 启动)

####后端启动

  • 运行项目之前,请确认以环境下载并安装,安装方式可以参考doc/deploy目录安装指南,MySql5.7+Redis4+elastisearch6.8.3Nocos1.2(使用搜索elastisearch需安装中文分词器IKAnalyzer);

  • 创建education-courseeducation-systemeducation-usernacos四个数据库,数据库脚本文件放置在项目doc/sql(包括nacos sql)文件夹下,直接导入即可;

  • 安装IDEA并导入项目源码,导入之前,IDEA需要安装lombok插件。源码仓库:git clone https://gitee.com/wewwww/roncoo-education.git;

  • 导入之后,检查nacos中各个微服务相关配置文件配置的mysql,redis(注意配置文件redis密码),elastisearch(注意配置文件es的集群名称)连接配置是否正确;

  • 项目启动有先后顺序,大家要按照以下顺序启动。

    • 启动课程服务roncoo-education-course 直接运行com.roncoo.education.CourseServiceApplication的main函数即可;
    • 启动系统管理服务roncoo-education-system 直接运行com.roncoo.education.SystemServiceApplication的main函数即可;
    • 启动用户服务roncoo-education-user 直接运行com.roncoo.education.UserServiceApplication的main函数即可;
    • 启动网关服务roncoo-education-gateway 直接运行com.roncoo.education.GatewayApiApplication的main函数即可;
    • 启动任务服务roncoo-education-job 直接运行com.roncoo.education.CrontabPlanApplication的main函数即可;
    • 启动监控服务roncoo-education-server-admin 直接运行com.roncoo.education.server.admin.ServerAdminApplication的main函数即可;
  • 查看微服务状态 http://localhost:5721/ 账号密码 admin/123456

  • 测试接口文档访问地址 http://localhost:5840/api/doc.html

前端启动

运营管理系统运行
  • 前端运行需要用到node,Node版本:9.0.0以上
  • 使用 npm install -g cnpm --registry=https://registry.npm.taobao.org
  • 安装依赖:cnpm install
  • 本地开发 启动项目:npm run dev
  • 打包正式环境:npm run build
  • 访问地址:http://localhost:5800/
前端门户系统导入运行

Docker环境部署

后端启动

  • 使用虚拟机安装CentOS7.5+或者使用云服务器,安装方式自行百度.

  • Docker、docker-compose环境的安装请参考 doc/deploy目录

  • 请在IDEA中,在项目根目录下即roncoo-education执行 mvn install ,会自动把各个服务打包成镜像并上传到Harbor仓库(打包机也需要安装Docker环境,可参考doc/deploy下指南)

  • 本项目使用docker-compose自动化部署

  • 部署文件

    • 查看doc/docker/各个docker-compose文件
    • 把 docker文件夹下的所有docker-compose文件上传到Linux服务器的一个目录下,最好新建一个文件夹把各个docker-compose文件和下方的脚本文件放置一个目录
  • 为了方便部署,采用shell脚本一键部署的方式,具体查看doc/script/start.sh (支持传入参数 pull、run、pullrun、stop、restart、removeAll)脚本文件。

    • 脚本文件中的镜像名称前缀变量BASE_IMAGE_NAME,请修改为你在harbor中的镜像前缀
    • 执行脚本前请赋予执行权限:./chmod u+x start.sh
    • ./start.sh pullrun 表示拉去镜像并创建容器

前端启动(使用docker,需要手动构建镜像并推送到远程仓库)

运营管理系统运行
前端门户系统导入运行

部署视频 敬请期待......

如果对您对此项目有兴趣,可以点 "Star" 支持一下 谢谢! ^_^

或者您可以 "follow" 一下

鸣谢

该项目参考了领课教育系统,感谢领课网络提供的这么优秀的项目

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [2019] [febs & mrbird] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

分布式在线教育系统(education-cloud)致力于打造一个各行业都适用的分布式在线教育系统。系统采用前后端分离模式,前台采用vue.js为核心框架,后台采用Spring Cloud Alibaba为核心框架。系统目前主要功能有课程点播功能,支持多家视频云的接入,课程附件管理功能,支持多家存储云的接入,讲师管理功能,支持讲师入驻功能,可以帮助个人或者企业快速搭建一个轻量级的在线教育平台。 展开 收起
Java
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/wellhopeDev/education-cloud.git
git@gitee.com:wellhopeDev/education-cloud.git
wellhopeDev
education-cloud
education-cloud
master

搜索帮助