Skip to content

Quiz web app for evaluating the users in various skill sets. The app will ask the users a set of questions and will provide them a score at the end.

Notifications You must be signed in to change notification settings

JV-2701/QUIZAPP

Repository files navigation

QuizApp

Quiz web app for evaluating the users in various skill sets. The app will ask the users a set of questions and will provide them a score at the end.

QuizApp


Quiz web app for evaluating the users in various skill sets. The app will ask the users a set of questions and will provide them with a score at the end.

General Information


  • A react App that will ask the users a set of questions and will provide them with a score at the end.
  • It evaluates users in various skill sets
  • Developing a Quiz app using veet + react to evaluate user's skill set by asking them multiple choice questions in the form of a quiz.

Technologies Used


  • HTML
  • CSS
  • JavaScript
  • React
  • Veet

Setup


  1. Project Structure: QuizApp/ ├── public │ └── vite.svg ├── src │ ├── api │ ├── assets │ │ ├── logo.png │ │ └── react.svg │ ├── components │ │ ├── Home.jsx │ │ ├── ProgressBar.jsx │ │ └── Quiz.jsx │ ├── pages │ │ ├── App.css │ │ ├── App.jsx │ │ ├── index.css │ │ └── main.jsx │ └── styles.css ├── .gitignore ├── db.json ├── eslint.config.js ├── index.html ├── package.json ├── package-lock.json ├── README.md ├── tailwind.config.js ├── vite.config.js

  2. Install Dependencies:

Open a terminal in your project directory. Run the following command to install the required dependencies: npm install react react-dom react-router-dom react-confetti axios vite @vitejs/plugin-react tailwindcss autoprefixer postcss

  1. Configure Vite:

Create a vite.config.js file in the root directory. Add the following configuration: import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import tailwindcss from 'tailwindcss'; import autoprefixer from 'autoprefixer';

export default defineConfig({ plugins: [react(), tailwindcss({ purge: ['./src/**/*.{js,jsx,ts,tsx}'] }), autoprefixer()], });

  1. Set Up TailwindCSS:

Create a tailwind.config.js file in the root directory. Add the following configuration: module.exports = { content: ['./src/**/*.{js,jsx,ts,tsx}'], theme: { extend: {}, }, plugins: [], }; 5. Create the API Endpoint:

If you're using a local JSON server for testing, create a db.json file in the root directory and add your quiz questions data. Start the JSON server using the command: npx json-server --watch db.json --port 3000

  1. Run the Development Server:

In your terminal, run the following command to start the development server: npm run dev This will open your project in the browser at http://localhost:3000.7. Start Building Your Quiz App:

Refer to the provided code snippets for guidance on implementing the Home, Quiz, and Result components, as well as the ProgressBar component. Customize the styles and logic to match your specific quiz requirements. Additional Notes:

You can modify the db.json file to add more questions and customize the quiz content. Adjust the http://localhost:3000/questions API endpoint in the Quiz component if you're using a different API or server. Customize the styles in the styles.css file to match your desired design. By following these steps, you should have a well-structured and functional React quiz application ready for development and customization.

Deploy the Application Online**

Deployment

    #Deploy on Vercel
  • 1. Sign up on [Vercel](https://vercel.com/) if you don’t already have an account.
  • 2. Connect your GitHub repository:
  • - Click “New Project” and select your GitHub repository containing the quiz app. - Vercel will automatically detect it’s a React app.
  • 3. Configure your project: Set the build and output settings (Vercel will often auto-detect these for React).
  • 4. Deploy: Click the "Deploy" button, and Vercel will handle the deployment process. Your app will be live with a unique URL that you can share.

Usage


Educational:

Classroom Quizzes: Teachers can use the application to create quizzes for students to assess their understanding of a particular topic. Online Courses: Online course platforms can integrate the quiz application into their courses to provide interactive quizzes for learners. Language Learning: The application can be adapted to create language quizzes to help learners practice vocabulary and grammar. Skill Assessment: Companies can use the application to assess job applicants' skills or knowledge in specific areas. Entertainment:

Trivia Games: The application can be used to create trivia games with various topics and difficulty levels. Puzzles and Riddles: Users can solve puzzles and riddles presented in the quiz format. Time-Based Challenges: The application can be configured with a time limit to create timed quizzes or challenges. Customizations:

The application can be customized to fit specific needs by:

Adding new question categories: Create quizzes on different topics like history, science, geography, or pop culture. Adjusting difficulty levels: Customize the difficulty of questions to cater to different audiences. Implementing scoring systems: Introduce different scoring systems (e.g., points, time-based) to enhance the quiz experience. Integrating with other platforms: Connect the application to other platforms like social media or learning management systems.

Project Status


Completed

Improvements


  • Design
  • Navigation
  • Accessibility

Features that can be added


  • Multiple-choice questions
  • True/false questions
  • Fill-in-the-blank questions

Contact


About

Quiz web app for evaluating the users in various skill sets. The app will ask the users a set of questions and will provide them a score at the end.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published