This is a replica of the famous online quiz web application "Kahoot!". This application however has only one of the functionalitites of kahoot, that is create a quiz and host it as a challenge by setting start date and time, end date and time and share it with students. This application makes use of chart.js library for generating and displaying charts and dialogFlow for chatbot. This is developed using MEAN stack.
There are two roles, namely student and teacher. The teacher can create a quiz and host it as a challenge by setting title, description, start date time, end date time. The students can log in to their account and play the quiz by entering the game PIN shared by the teacher. The student can see his score once the deadline has passed. The teacher can get a consolidated view of all student's performances with the help of charts.
- cd Quizzards-Mean/
- npm install
- cd client/
- npm install
- If you dont, have Git SCM installed on your system, you can download it: https://git-scm.com/downloads
- Clone the repository by cicking the Code on the repository above, and copy the HTTP URL, then go to the comand prompt and use git clone .
- Before starting the application, first create a database in mongo named "quizzards"
- I have used DocumentDB from Azure as the MongoDB URI. You can download MongoDB locally and setup its URI here at config/database.js and replacing the "var dbURI =" variable with the URI of locally hosted MongoDB.
- I have brought the domain "https://quizzards.site/" and is valid upto 2024-03-27 . So i have deployed the git repository on vercel and have routed to the custom domain brought. - Here the front-end client source code hav been deployed sucessully and is live. The back-end is not deployed and needs to be started manually. - Hence, clone the repository and then start the server on your localhost by the steps gicen in the next section.
To start the Server :
- node index.js
To run the application on the browser:
- Open a new terminal and run cd client/
- ng serve
- Navigate to
http://localhost:4200/
.
- Used JWT for login
- The user can play a quiz only once
- On submitting a quiz, the user is redirected to the feedback page. Here the student cannot redirect back to the Quiz.
- Teachers can get an overview of student's performances with the help of charts.
- Angular CLI - v8.3.0
- NodeJS - v14.21.3
- WebStorm IDE - 2022.3.4
Here are the steps to install Node.js version 14.21.3 from the previous releases:
- Go to the official Node.js website: https://nodejs.org/en/
- Click on the "Previous Releases" link located at the bottom of the page (https://nodejs.org/en/download/releases)
- Scroll down and select the 14.21.3 version from the list of releases.
- Choose the appropriate installer for your operating system. For Windows, you can select the "Windows Installer (.msi)" option.
- Once the installer is downloaded, run it and follow the prompts to install Node.js on your system.
- After the installation is complete, open a command prompt or terminal and verify the Node.js version by running the following command: 'node -v'
This will display the version of Node.js installed on your system. That's it! You have successfully installed Node.js version 14.24 from the previous releases.
To install Angular CLI version 8.3.0 on Windows using Command Prompt, follow these steps:
- Make sure you have Node.js installed on your system. You can follow the instructions in the above section to install the correct Node JS version for the project.
- Open Command Prompt by pressing the Windows + R keys, typing "cmd", and pressing Enter.
- To install the Angular CLI globally on your system, enter the following command: 'npm install -g @angular/cli@8.3.0' This command will install the Angular CLI version 8.3.0 on your system.
- Verify that the Angular CLI is installed correctly by running the following command: 'ng version'. This command will display the version of the Angular CLI installed on your system.