Skip to content

SlyCreator/Spring-Quiz-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Quiz App

This is a quiz / Examination system built with spring boot java framework

Installation

Setup JDK in your computer before you can run this project.You can follow this link to setup java on your computer.

https://phoenixnap.com/kb/install-java-windows

Clone the repository into your computer.

Open the application in your favorite IDE/Text Editor.

Locate the application.properties file and modify the database username,password,

spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url = jdbc:mysql://localhost:3306/database-name //modify the databaseName
spring.datasource.username = root //Modify this to your sql usernmae
spring.datasource.password = password //modify this to sql password or blank if you did not set password.
spring.jpa.show-sql = false
spring.jpa.hibernate.ddl-auto = create
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
server.port=9003

Usage

Run the application from you IDE using the Run button or you can use the terminal to run the project. use the below command to launch the application

mvn spring-boot:run

Software Design

Domain

  • User : This holds the information of the user entity.
  • Question : This holds a text field that store the questions into the table
  • Option : This holds the options that are available to a question,also have a many to one relationship with Question
  • Quiz : This belongs to a user.it stores the quiz session that a user took.
  • QuizAnswer: This holds the information of the answer a user took.Also with it questionId.

Api Documentation:

The api documentation was documented using postman.Check the API Documentation by clicking this link Here


Today I will be discussing on building a quiz/Exam application using springboot. So pretty much in this application we want to expo some endpoint to a user to be able to the user to be able register and login.When the user login to the application a token will be return so with that token.

About

This repository contains an implementation of a Quiz/Examination App using Springboot.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published