tom-sapletta-com / kahoot-js

A simple Kahoot clone.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kahoot-JS

Watch the YouTube video to see how it works

App Video

The project is inspired by the Kahoot app. The main functionality of the application is the creation of educational games in the form of quizzes, which then can be solved by several students at the same time in the form of a game. Quizzes can be created with the use of a special wizard that allows you to select the type of question, determine the method of awarding points and answer time for a particular question, and the number of correct answers. During the quiz, the teacher acts as the host who creates a room that students can access using an access code. During the game, students see the scoreboards after each question in real time. Quizzes are divided into public and private. Each logged in user can view the list of public quizzes, add likes and comments to them.

Installation

Client side

cd client
npm install

Server side

cd server
npm install

Run the app

You need four terminal instances - one for client app and three for backend servers.

cd client
npm start
cd server
npm run devStart
cd server
npm run devStartAuth
cd server
npm run devStartSocket

Generate JWT tokens

ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub

Env configuration

DATABASE_URL=string (required)
PORT=3000 (required number)
AUTH_PORT=4000 (required number)
ACCESS_TOKEN_SECRET=string (required string)
REFRESH_TOKEN_SECRET=string (required string)

Contributing

As this is my first project in the Javascript ecosystem, most of the code needs to be refactored or rewritten :) There are a lot of bugs in the code, which I'm sure you'll find quickly.

Also many new features needs to be added to call this project as a full-fledged Kahoot clone.

Feel free to contribute.

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

A simple Kahoot clone.


Languages

Language:JavaScript 82.9%Language:CSS 16.8%Language:HTML 0.3%