Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #43 from louis-antoine-etsmtl/louis-antoine-etsmtl…
Browse files Browse the repository at this point in the history
…-patch-1

Update README.md
  • Loading branch information
louis-antoine-etsmtl authored Mar 25, 2024
2 parents 6b95303 + 26c9ca6 commit 1860fa3
Showing 1 changed file with 3 additions and 48 deletions.
51 changes: 3 additions & 48 deletions README.md
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)

0 comments on commit 1860fa3

Please sign in to comment.