- Node.js: Preferably v16
- Run
yarn --prod
in the project root to install dependencies - Environment variables
SESSION_SECRET
: A strong OpenSSL generated keyDB_PATH
: Path to a SQLite databaseLEADERBOARD_CACHE_TIME
: Time in milliseconds to cache the leaderboardQUESTIONS_BASE_PATH
: Path to the questions directory which should contain the images and thequestions.json
fileREGISTERED_USERS_PATH
: Path to a json file containing an array of users' email addresses registered on VIT Chennai Events.
- A
questions.json
file should be present in theQUESTIONS_BASE_PATH
directory. It should contain an array of objects with the following structure:{ "level": 1, "question": "Question text", "answer": "Answer text", "image": "image.webp" }
- The
image
field should be the name of the STRICTLY WEBP formatted image file in theQUESTIONS_BASE_PATH
directory.