Skip to content

sameh-tarek/Quiz-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quiz-App

Simple Quiz App API with Spring Boot (JPA , mysql )

Test the API here :

Run in Postman

How to Run

1- Clone the project repository from Git (if it's not already cloned).

2- Import the project into your favorite Java IDE (e.g., IntelliJ, Eclipse, etc.).

3- create public key and private key in a new folder under /src/main/resources/certs

run this commands in terminal

# create rsa key pair
openssl genrsa -out keypair.pem 2048
# extract public key
openssl rsa -in keypair.pem -pubout -out public.pem
# create private key in PKCS#8 format
openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in keypair.pem -out private.pem

4- Build the project to resolve dependencies.

Project Architecture NTier

271463980-ecd11189-f496-456e-a713-6a28146b2be3

features

1- User can add questions

Example :

I sent the question information that I want to add in json via postman

Screenshot (130) The question has been added in the database Screenshot (131)

2- User can get all questions

Example with postman :

Screenshot (132)

3- User can see all questions from the same category

Example : with postman

Screenshot (133)

4- User can Update and delete questions

Example with postman :

  • update this question with id 4 Screenshot (134)

Screenshot (135)

Screenshot (136)

5- The user can create quiz by specifying the category, the number of questions, and the name of the quiz,

The quiz will be created automatically with questions from those in the database that have the same category that was chosen.

Screenshot (137)

6- user can get quiz by id to start the quiz

Screenshot (138)

7- user can submit the quiz and get the results automatically.

Example with postman :

Screenshot (139)

database

Screenshot (163)

project Class Diagram

quizapp