大家好,我是 Java陈序员
。
今天,给大家介绍一个前后端分离的在线考试系统。
项目介绍
spring-boot-online-exam
—— 一个基于 Spring Boot + Vue 实现的在线考试系统,支持学生、教师、管理员三种角色。
功能特色:
技术栈:
- 前后端分离,前段组件化,方便二次开发
- 前端:Vue + AntDesign
- 后端:SpringBoot + JPA + Swagger2 + JWT
功能图示
考试卡片
问题管理
考试管理
我的考试
快速上手
1、下载代码
git clone https://github.com/19920625lsg/spring-boot-online-exam.git
2、初始化数据库
- 创建数据库
CREATE DATABASE `exam` DEFAULT CHaraCTER SET utf8mb4 COLLATE utf8mb4_bin;
3、启动后端
- 将项目以 Maven 项目的形式导入到 IDEA
- 修改配置文件
spring-boot-online-exam/backend/src/main/resources/application.yml
中的数据库连接信息
spring:
datasource:
driver-class-name: com.MysqL.cj.jdbc.Driver
username: root
password: aA111111
url: jdbc:MysqL://localhost:3306/exam?characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
-
执行主启动类
lsgwr.exam.ExamApplication
,启动后端服务 -
浏览器访问
Swagger
文档地址http://localhost:9527/swagger-ui.html
说明启动成功
4、启动前端
- 进入前端代码
cd spring-boot-online-exam/frontend/exam/
- 安装依赖
npm install
- 启动前端
npm run serve
5、浏览器访问 http://localhost:8000
项目地址:https://github.com/lsgwr/spring-boot-online-exam
最后
推荐的开源项目已经收录到 GitHub
项目,欢迎 Star
:
https://github.com/chenyl8848/great-open-source-project
或者访问网站,进行在线浏览:
https://chencoding.top:8090/#/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。