This project aims to create a Command Line Interface (CLI) application for efficiently managing a database of questions and exams.
- Import questions from GIFT files.
- Manage questions (add, delete, search, deduplicate).
- Generate exams containing 15 to 20 questions.
- Export exams in GIFT format.
- Visualize questions and exams.
- Manage contacts (create, modify, delete, search).
- Generate HTML charts to visualize the distribution of question types.
- Node.js (version 16 or higher)
- npm (version 8 or higher)
- Clone the repository:
git clone https://github.com/aminssutt/GL02_projet_OGMen.git cd GL02_projet_OGMen/src - Install dependencies:
npm install
To launch the CLI application, run:
cd src
node everywhereCli.jsquestions list: List all questions.questions import: Import questions from the./datadirectory.exam generate: Generate an exam.- For the full documentation, see the Wiki.
The Test Plan serves as a structured framework to document and verify the test cases for the software. It outlines the scenarios, objectives, and expected results to ensure that the implementation adheres to the defined Software Requirement Specifications (SRS). By executing these tests, we aim to identify potential issues and improve the overall quality of the software.
The primary objective of the test plan is to:
-
Verify that the implementation meets the defined requirements.
-
Identify discrepancies and suggest improvements for future development.
-
Ensure a high standard of software quality through systematic testing.
-
questions list- Affiche toutes les questions de la banque. -
questions import- Importe les questions depuis le répertoire./data. -
questions delete --title <title>- Supprime une question par titre exact. Le titre doit être écrit entre parenthèses -
questions add --text <text> --type <type>- Ajoute une nouvelle question, avec son texte et son type (entre guillemets, parmis 'True/False', 'Multiple Choice', 'Matching Answers', 'Numeric', 'Fill', 'Essay'). -
questions chart- Génère un fichier HTML avec un graphique des types de questions. -
exam generate- Génère un examen contenant entre 15 et 20 questions. -
exam export --id <id>- Exporte un examen au format GIFT. -
questions deduplicate- Supprime les doublons dans les titres des questions. -
contact create- Crée un nouveau contact. -
contact update- Modifie un contact. -
contact delete- Supprime un contact. -
visualize exam- Permet de visualiser un examen avec un diagramme en barre. -
visualizeExamTheme- Permet de visualiser un profil d'examen par theme en créant un diagramme en barre. -
search contact- Rechercher un contact par Nom. -
search question- Rechercher une question par ID. -
search exam- Rechercher un examen par ID ou date. -
simulate exam- Simule un exament avec les résultats.
The tests are conducted in a technical environment capable of running Node.js version 18 or higher. This includes any desktop operating systems such as Windows, Linux, or macOS.
The full test plan, including detailed scenarios, test cases, and results, is available as a shared document. You can access it via the following link: Complete Test Plan Document
This project is licensed under the MIT License.
The MIT License allows:
- Free use, modification, and distribution of the software.
- Integration into proprietary projects while preserving credit to the original authors.
For more details, refer to the LICENSE file in the repository.