ITSource Share Issue 2 [Online Examination System]

Project Introduction

This issue introduces you to a front-end and back-end separation system based on SpringBoot and Vue. The code is written in a very standardized way and has learning and reference significance.

1. Business introduction

As the name suggests, the examination system has a question maker and a question maker. The same is true for this system. The role of the question maker is called the teacher, and the role of the question maker is called the student. Different accounts can be granted different roles.

This system is divided into the following modules:

1.Exam card

The test card can be understood as a test paper, which is a collection of test questions. When we log in as a student, we can see the test card and my test

image.png Click on any test card to start answering questions image.png After answering the questions, you can click Submit to jump to my exam page image.png

2. Problem management

Question management can be understood as a question bank where questions can be asked. This module requires the role of a teacher to be seen. We can log in with a teacher’s account. image.png Click New to create a new question image.png Click Next to continue to improve the question type: question type, classification, difficulty image.png image.png Set options: image.png Click Finish to see the question added image.png Click on details to view question information: image.png

3.Exam management

Examination management can manage test cards, which can be understood as a place to create test papersimage.png image.png Select scores and questions: image.png Click Finish to create a Zhang test paper: image.png

4.My exam

You can view the exams you have taken and the details of your answers everything Click to view the start details to see the details of your answer sheet and your answers image.png image.png

2. Technical introduction

1. Technology stack

  • Backend: SpringBoo2.x +JPA
  • Database: MYSQL5.x OR MYSQL8.x,
  • 前端: VUE + ElementUI

2. Code introduction

  • Project structure
image.png
image.png

Three Quick Start

1. Environment preparation

  • MYSQL 5.7
  • JDK1.8
  • Maven 3
  • IDEA
  • Node 16+

The above environment needs to be prepared and set up locally before proceeding with the following steps.

2. Download source code

  • Github:

https://github.com/panji-tech/spring-boot-online-exam

  • Baidu cloud:

Link: https://pan.baidu.com/s/1RiVFa5qt-wLa3MW2lnYrlw?pwd=5ya8 Extraction code: 5ya8

  • Lan Zuoyun:

https://itguang.lanzoub.com/b02x6t03e Password: 6fjx

3. Backend deployment

  • Step1: Download source code
  • Step2: IDEA open the project
  • Step3: Install Maven dependencies
  • Step4: Configuration check
  • Database configuration: Database initialization statement: under the doc folder image.png

Create database and initialize: Open navicat to create database: exam. (Note that the default database connection account and password are root) Copy the SQL statement to Mysql visualization tools such as navicat, and execute it to see the table structure and initialization data:image.png

  • Step4: Start the backend project

Idea runs the back-end project. If you see the following information, it means the operation is successful.image.png Open ithttp://127.0.0.1:9527/swagger-ui.html to see the API document of the project a>image.png

At this point, the candidate project deployment is completed.

4. Front-end deployment

Open the terminal and enter the front-end project directory:

image.png
image.png
  • Step1: Install npm dependencies

After entering the directory through the terminal, install npm dependencies: npm install

  • Step2: Start the front-end project

When npm run serve sees the following information, it means the deployment is successful.image.png

If you encounter an error: Error: error:0308010C:digital envelope routines::unsupported You can check your node version to see if it is higher than 17. You can refer to the blog here to solve the problem: https://blog.csdn.net/m0_65933139/ article/details/130690790

Click on any link to jump to the browser and open it.

image.png
image.png

Log in:

  • Student: student admin123
  • Teacher: teacher admin123


Follow the ITSource official account! Get more learning resources!

everything

Paid secondary development, customization, and one-on-one explanation are available. If interested, please contact WeChat: itguangit

This article is published by mdnice Multiple platforms

Guess you like

Origin blog.csdn.net/itguangit/article/details/134019239