-
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.
- Clone the repo.
git clone https://github.com/Abinash393/qustion-paper-gen.git
- 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]
- 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"
}
- Run (on unix like os).
cd qustion-paper-gen
node main
- Result format (in arrays questions will be stored).
{
"easy": [],
"medium": [],
"hard": []
}