- Node.js: Preferably v16
- Run
yarn --prodin 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.jsonfileREGISTERED_USERS_PATH: Path to a json file containing an array of users' email addresses registered on VIT Chennai Events.
- A
questions.jsonfile should be present in theQUESTIONS_BASE_PATHdirectory. It should contain an array of objects with the following structure:{ "level": 1, "question": "Question text", "answer": "Answer text", "image": "image.webp" } - The
imagefield should be the name of the STRICTLY WEBP formatted image file in theQUESTIONS_BASE_PATHdirectory.