Giter Site home page Giter Site logo

etapquiz's Introduction

eTapQuiz - Online Quiz App

CodeQL Deploy static content to Pages

Welcome to eTapQuiz, an online quiz application where users can create quizzes, set start times, and challenge others to participate in live quizzes. This README provides an overview of the project, its features, and instructions for setup.

Table of Contents

Features

  • Users can create and manage quizzes.
  • Set a start time for quizzes to make them live for participants.
  • Participants join quizzes at the scheduled start time.
  • All participants receive the same set of questions simultaneously.
  • Real-time quiz experience with a countdown timer.
  • Leaderboard to track and display participants' scores.

Getting Started

Prerequisites

  • Web Server: Any server capable of hosting websites should work. If you don't have one, you can install Nginx or Apache.
  • Firebase Account:
    • Ensure you have a Firebase account. If not, you can sign up for Firebase.
    • Create a Firestore database for storing user data.
    • Set up a Realtime Database for additional real-time functionality.
    • Enable Firebase Authentication with methods such as email/password.
      • Go to the Firebase Console.
      • Select your project.
      • Navigate to "Authentication" in the left sidebar.
      • Under the "Sign-in method" tab, enable the desired authentication methods (e.g., Email/Password).

Installation

  1. Clone the repository:

    git clone https://github.com/ErzenXz/etapquiz.git
  2. Navigate to the project directory:

cd eTapQuiz
  1. Update Firebase Credentials:

    In order to connect your web application to Firebase services, you'll need to replace the placeholder values in the following script with your own Firebase credentials. Here's how to obtain these credentials:

    • Go to the Firebase Console.
    • Select your project or create a new one.
    • Navigate to "Project settings" (click on the gear icon in the top left).
    • Under the "General" tab, find the "Your apps" section and click on the Firebase web app icon (</>).
    • Copy the configuration object (apiKey, authDomain, databaseURL, projectId, storageBucket, messagingSenderId, appId, measurementId).

    Now, replace the placeholder values in your HTML script with the corresponding values from your Firebase project:

    <script>
       const firebaseConfig = {
          apiKey: "YOUR_API_KEY",
          authDomain: "YOUR_AUTH_DOMAIN",
          databaseURL: "YOUR_DATABASE_URL",
          projectId: "YOUR_PROJECT_ID",
          storageBucket: "YOUR_STORAGE_BUCKET",
          messagingSenderId: "YOUR_MESSAGING_SENDER_ID",
          appId: "YOUR_APP_ID",
          measurementId: "YOUR_MEASUREMENT_ID",
       };
       firebase.initializeApp(firebaseConfig);
    </script> ```

Ensure to replace each placeholder (YOUR_API_KEY, YOUR_AUTH_DOMAIN, etc.) with the corresponding values copied from your Firebase project settings.

  1. Start the application:
You need to have a web server, if your testing this use Live Server from VSCode

The application should be accessible at http://localhost:5500. You need to check the port your server is running because it may be different from this.

Usage

Creating a Quiz

  1. Log in or create a new account.
  2. Navigate to the "Create Quiz" section.
  3. Fill in the details, set the start time, and add questions.
  4. Save the quiz.

Joining a Quiz

  1. Log in or create a new account.
  2. Browse the available quizzes.
  3. Enroll in a quiz before the scheduled start time by just clicking on it.
  4. Wait until it says Started then join!

Live Quiz Experience

  • Participants experience the quiz in real-time.
  • Questions are presented simultaneously to all participants.
  • Countdown timer ensures a time-limited challenge.
  • Participants submit their answers within the given time.

Leaderboard

  • The leaderboard displays participants' scores in real-time.
  • Updated dynamically as participants submit answers.

Contributing

Contributions are welcome! Please follow the contribution guidelines.

License

This project is licensed under the GNU Affero General Public License v3.0.

etapquiz's People

Contributors

erzenxz avatar

Watchers

 avatar

etapquiz's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.