This repository has been archived by the owner on Apr 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from louis-antoine-etsmtl/louis-antoine-etsmtl…
…-patch-1 Update README.md
- Loading branch information
Showing
1 changed file
with
3 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,5 @@ | ||
# To run this project | ||
# test demo | ||
# Bienvenue sur le Frontend d'EvalueTonSavoir ! | ||
|
||
First install with: `npm install` | ||
EvalueTonSavoir est une plateforme open source et auto-hébergée qui poursuit le développement du code provenant de https://github.com/ETS-PFE004-Plateforme-sondage-minitest. Cette plateforme minimaliste est conçue comme un outil d'apprentissage et d'enseignement, offrant une solution simple et efficace pour la création de quiz utilisant le format GIFT, similaire à Moodle. | ||
|
||
To run the project: `npm run dev` | ||
|
||
To run tests: `npm run test` | ||
|
||
## Environment variables | ||
|
||
Create a .env file at the root of the project with the following variables: | ||
|
||
``` | ||
VITE_BACKEND_URL="https://ets-glitch-backend.glitch.me/" | ||
VITE_AZURE_BACKEND_URL="https://evaluetonsavoirbackend.azurewebsites.net/" | ||
``` | ||
|
||
### Original code | ||
|
||
The original code has been developed to create a VS extension to support GIFT text format. | ||
|
||
The code can be found here: [https://codesandbox.io/s/gift-templates-iny09](https://codesandbox.io/s/gift-templates-iny09) | ||
|
||
We decided to reuse this code because it provides a preview close to how looks like quizzes in Moodle. Which is a well-known platform at École de technologie supérieure (ÉTS). | ||
|
||
### Related NPM packages: | ||
|
||
In order to reuse the code, we had to install the following NPM packages: | ||
|
||
- [katex](https://www.npmjs.com/package/katex) : A fast, easy-to-use JavaScript library for TeX math rendering on the web. | ||
- [marked](https://www.npmjs.com/package/marked) : A markdown parser and compiler. Built for speed. | ||
- [nanoid](https://www.npmjs.com/package/nanoid) : A tiny (108 bytes), secure, URL-friendly, unique string ID generator for JavaScript. | ||
- [gift-pegjs](https://www.npmjs.com/package/gift-pegjs) : A GIFT parser for JavaScript using PEG.js. | ||
- [@types/katex](https://www.npmjs.com/package/@types/katex) : TypeScript definitions for katex. | ||
- [@types/marked](https://www.npmjs.com/package/@types/marked) : TypeScript definitions for marked. | ||
- [@types/nanoid](https://www.npmjs.com/package/@types/nanoid) : TypeScript definitions for nanoid. | ||
|
||
### Modifications | ||
|
||
- Error.ts: changed 2 let `document` and `newText` into const. (es-lint) | ||
- GlobalFeedback.ts: removed unused import of `TextFormat`. (es-lint) | ||
- Matching.ts: removed unused import of `Match`. (es-lint) | ||
- TextType.ts: replaced the `marked` call by `marked.parse` and fixed SyntaxError: ambiguous indirect export: default for `{ marked }`. | ||
|
||
- Put `Template` and `ErrorTemplate` functions apart from index.ts to dedicated `.ts` files. | ||
|
||
``` | ||
``` | ||
Voir le wiki du projet [ici](https://github.com/louis-antoine-etsmtl/EvalueTonSavoir/wiki) |