Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

abinashpa/qustion-paper-gen

Repository files navigation

Read Me

  • This is a question paper generator based on specification.

  • Requirements: You need to Node.js > v10 installed in your system.

  • If your system doesn't have Node.js installed then you can goto https://nodejs.org and install LTS version.

  • Follow these steps to run the programme.

  1. Clone the repo.
git clone https://github.com/Abinash393/qustion-paper-gen.git
  1. Add questions inside data object in question-store.json file.
    Ex: // Question Subject Topic Difficulty Marks
["What is the speed of light", "Physics", "Waves", "Easy", 5]
  1. Setup config.json file.
    Ex: For total 100 marks, 20% easy, 50% medium and 30% hard difficulty questions and question store file path.
{
  "totalMarks": 100,
  "difficulty": {
    "easy": 20,
    "medium": 50,
    "hard": 30
  },
  "filePath": "./question-store.json"
}
  1. Run (on unix like os).
cd qustion-paper-gen

node main
  1. Result format (in arrays questions will be stored).
{
  "easy": [],
  "medium": [],
  "hard": []
}

About

Reelo Assignment - 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published