-
Notifications
You must be signed in to change notification settings - Fork 0
User Starting Guide
LZPxka edited this page Jan 11, 2025
·
2 revisions
This page serves as the central documentation hub for understanding, using, and maintaining the project. Below are the main sections that will guide both users and developers.
GL02_projet_OGMen is a Command Line Interface (CLI) application designed to manage a question and exam database. Users can import questions from GIFT files, manipulate them (add, delete, search, deduplicate), and generate exams. This application is a practical tool for educators to streamline the exam preparation process.
- Import questions from GIFT files.
- Manage questions: add, delete, search, deduplicate.
- Generate exams containing 15-20 questions.
- Export exams in GIFT format.
- View questions and exams.
- Manage contacts: create, modify, delete, search.
- Generate HTML charts to visualize question distributions.
- Node.js
- npm
- 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 the following command:
cd src
node everywhereCli.js-
questions list- Display all questions. -
questions import- Import questions from the./datadirectory. -
questions delete --title <title>- Delete a question by its exact title. -
questions add --text <text> --type <type>- Add a new question. -
questions chart- Generate an HTML file with a chart of question types. -
questions deduplicate- Remove duplicate question titles.
-
exam generate- Generate an exam with 15-20 questions. -
exam export --id <id>- Export an exam in GIFT format. -
visualize exam- Visualize an exam as a bar chart. -
visualizeExamTheme- Visualize an exam profile by theme as a bar chart. -
search exam- Search for an exam by ID or date. -
simulate exam- Simulate an exam with results.
-
contact create- Create a new contact. -
contact update- Update a contact. -
contact read- Read information about a contact. -
contact delete- Delete a contact. -
search contact- Search for a contact by name.
Note: Ensure that Node.js version 18 or higher is installed before running the application.