This repo contains the quiz web app for the Enigma event to be held by D'CoderS
-
Install NodeJS v6.11.4 (tested on this version)
-
Clone the repo
-
Import enigma.sql to your database
-
Create config.js under routes with modified version the following code:
module.exports = {
'DB_USER': '', // Database Username
'DB_USER_PASS': '', // Database user password
'DB_NAME': 'enigma',
'SESSION_TOKEN_SECRET': '', //Any random string used while creating session tokens
'TOTAL_QUESTIONS': 100 // Total number of questions for the quiz
};
-
run
npm install
to install all the dependencies -
run
npm start
The homepage can be directly modified which is present under public/
folder as index.html
IMPORTANT : Make sure your (question 1 has id 1), (question 2 has id 2), ... in the questions table.