Quiz Spring
Quiz Spring
using Spring Boot (v3.3.1), Java (v17), PostgreSQL (v17), and the Tomcat server on
port 8080. I utilized dependencies like Spring Data JPA for database operations,
Spring Web for building RESTful services, and Lombok to reduce boilerplate code,
ensuring a cleaner and more efficient development process.
For testing, I used Postman to validate APIs and pgAdmin4 for managing the
PostgreSQL database. The system I built supports functionalities like data
insertion, question validation, and the retrieval of quiz details through custom
URLs, making it a robust solution for handling quiz data."
1) The main technologies I used were Spring Boot (v3.3.1), Java (v17), and
PostgreSQL (v17) for the backend, all running on a Tomcat server (port 8080).
2)"Starting with the architecture, I chose Spring Boot as the core framework
for its ease of use and allows for quick development. It also supports RESTful
services, which made it simple to set up API endpoints for retrieving and managing
quiz data.
I used PostgreSQL as the database because it’s reliable and can handle complex data
efficiently.
2)The project was deployed on a Tomcat server, running on port 8080.
I configured it to handle multiple user requests at the same time without any
performance issues.Database and ORM:
3)"I used spring-data-jpa as (ORM) the tool to connect my Java code with the
database, which made it easier to insert and retrieve data. JPA handles most of the
SQL code automatically, so I could focus more on the main logic of the system
instead of writing complex database queries.
4) For managing the database, I used pgAdmin4, which is a user-friendly tool with a
graphical interface. Through pgAdmin, I set up the database structure for the quiz
system, creating tables for quiz, questions, answers, and description , options.
This structure made it easy to handle relationships, like having multiple questions
in a single quiz."
5) data insertion -
validation
retrieval of quiz points - If there are 20 questions answered 15 right score should
be decremented 5 and shows 15 as score
Based on the url you will get questions like if you want only java questions you
will get and python questions.....if you want on questions and options not right
answer if you enter the respected url you will get.
"By the end of the project, I successfully created a backend system t hat supports
multiple quizzes, validates user responses, and manages data efficiently. This
project gave me hands-on experience in using Spring Boot for web services, working
with PostgreSQL, and effectively testing APIs using Postman. It also boosted my
understanding of database management and ORM tools like spring-data-jpa.,