Skip to content

HackclubVIT/hackquest-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackquest website

Production environment and setup

  • Node.js: Preferably v16
  • Run yarn --prod in the project root to install dependencies
  • Environment variables
    • SESSION_SECRET: A strong OpenSSL generated key
    • DB_PATH: Path to a SQLite database
    • LEADERBOARD_CACHE_TIME: Time in milliseconds to cache the leaderboard
    • QUESTIONS_BASE_PATH: Path to the questions directory which should contain the images and the questions.json file
    • REGISTERED_USERS_PATH: Path to a json file containing an array of users' email addresses registered on VIT Chennai Events.

Setting the questions

  • A questions.json file should be present in the QUESTIONS_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 the QUESTIONS_BASE_PATH directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published