Skip to content

Rohitswami16/OnlineQuizSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

📝 OnlineQuizSystem

A simple web-based quiz application built using Java, JSP, Servlets, and MySQL. The application allows students to take quizzes and view their results and leaderboard. An admin can log in to add questions.

🌐 GitHub Repository

Click here to view the repository


✅ Features

  • 👨‍💻 Admin Panel

    • 🔐 Login functionality for admin.
    • ➕ Add quiz questions.
  • 👩‍🎓 Student Interface

    • 📝 Take quizzes without the need for login.
    • 📊 View quiz results after completion.
    • 🏆 View leaderboard with top scores.
  • 🛠️ Technologies Used

    • Frontend: HTML, CSS, JavaScript, JSP
    • Backend: Java (Servlets, JSP)
    • Database: MySQL
    • Server: Apache Tomcat
    • Build Tool: Maven

📦 Dependencies

The project uses the following libraries, managed by Maven:

  • javax.servlet:javax.servlet-api - For Servlet support.
  • javax.servlet.jsp:javax.servlet.jsp-api - For JSP pages.
  • com.mysql:mysql-connector-j - For connecting with MySQL database.
  • javax.servlet:jstl - For JSP Standard Tag Library support.

These are defined in the pom.xml.


⚙️ Installation & Setup

  1. Clone the repository

    git clone https://github.com/Rohitswami16/OnlineQuizSystem.git
    
  2. Import into your IDE

    • Open the project in Eclipse or STS (Spring Tool Suite).
    • Configure Apache Tomcat server.
  3. Setup MySQL Database

    • Create a database (e.g., OnlineQuizSystem_Database).
    • Create tables manually using the code provided.
  4. Run the project

    • Deploy the project on Tomcat.
    • Open your browser and visit:
      (http://localhost:8080/OnlineQuizSystem/)
quiz-project/
├── src/
│   └── main/
│       ├── java/
│       │   └── com/quiz/
│       │       ├── controller/  # Servlets handling requests
│       │       │   ├── AdminLoginController.java
│       │       │   ├── AdminPanelController.java
│       │       │   ├── HomeController.java
│       │       │   ├── LeaderboardController.java
│       │       │   ├── QuizController.java
│       │       │   └── ResultController.java
│       │       ├── dao/  # Data Access Objects for database interaction
│       │       │   ├── AdminDAO.java
│       │       │   ├── OptionDAO.java
│       │       │   ├── QuestionDAO.java
│       │       │   └── ResultDAO.java
│       │       ├── model/  # Java classes representing data models
│       │       │   ├── Admin.java
│       │       │   ├── Option.java
│       │       │   ├── Question.java
│       │       │   └── Results.java
│       │       └── util/  # Utility classes like DB connection
│       │           └── DBConnection.java
│       ├── resources/ # Configuration files
│       │   └── application.properties
│       └── webapp/ # Frontend files
│           ├── adminLogin.jsp
│           ├── adminPanel.jsp
│           ├── index.js
│           ├── index.jsp
│           ├── leaderboard.jsp
│           ├── style.css
│           └── takeQuiz.jsp
├── pom.xml  # Maven build file
└── README.md


📸 Screenshots

Home
Home
Admin Login
Admin Login
Add Question
Add Question
Quiz
Quiz
Result
Result
Leaderboard
Leaderboard

Author

Rohit Swami
GitHub: @Rohitswami16

About

A simple web-based quiz application where students can take quizzes and view results. The admin can add questions. Built using Java, JSP, Servlets, and MySQL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors