Installation des outils
À faire avant la S01. Comptez environ 30 minutes.
1. Outils communs
Section intitulée « 1. Outils communs »| Outil | Version | Vérification |
|---|---|---|
| VS Code | récente | — |
| Git | 2.40+ | git --version |
| Node.js LTS | 22 ou 24 | node -v |
Extensions VS Code conseillées :
- XML (Red Hat) : validation DTD/XSD et complétion dans l’éditeur ;
- ESLint et Prettier ;
- Prisma ;
- MongoDB for VS Code ;
- Markdown Preview Mermaid Support et Marp for VS Code (pour les slides).
2. Module XML
Section intitulée « 2. Module XML »xmllint (libxml2)
Section intitulée « xmllint (libxml2) »- macOS : déjà installé (
xmllint --version). - Linux :
sudo apt install libxml2-utils - Windows : utiliser WSL (
sudo apt install libxml2-utils).
XSLT 3.0 et XPath 3.1 avec SaxonJS
Section intitulée « XSLT 3.0 et XPath 3.1 avec SaxonJS »npm install -g xslt3 # ou npx xslt3 sans installation globalenpx xslt3 -s:catalogue.xml -xsl:catalogue.xsl -o:catalogue.htmlnpx xslt3 -s:catalogue.xml -xp:"count(//livre)" # tester une expression XPath
xsltproc(livré avec libxml2) suffit pour XSLT 1.0. SaxonJS est nécessaire pour les exemples XSLT 3.0 et XPath 3.1.
3. Module Frameworks
Section intitulée « 3. Module Frameworks »Aucune installation globale n’est nécessaire : chaque TP fournit un package.json.
npm create vite@latest # S11, template reactnpx prisma --version # S10Client HTTP pour tester les API : Bruno (au choix : l’extension Thunder Client ou curl).
4. Module NoSQL
Section intitulée « 4. Module NoSQL »Docker Desktop
Section intitulée « Docker Desktop »Installez Docker Desktop, puis, à la racine du dépôt :
npm run db:up # équivaut à : docker compose -f infra/docker-compose.yml up -ddocker compose -f infra/docker-compose.yml ps| Service | Port | Accès |
|---|---|---|
| MongoDB 8 | 27017 | docker exec -it bibliotech-mongo mongosh |
| Redis 8 | 6379 | docker exec -it bibliotech-redis redis-cli |
| Redis Insight | 5540 | http://localhost:5540 |
| Neo4j 5 | 7474 / 7687 | http://localhost:7474 (neo4j / bibliotech) |
| PostgreSQL 17 + pgvector | 5432 | optionnel : docker compose -f infra/docker-compose.yml --profile optional up -d |
Sans Docker : MongoDB Atlas (offre gratuite), Redis Cloud (offre gratuite) et Neo4j AuraDB Free fonctionnent aussi. Il suffit d’adapter les URL de connexion dans .env.
Vérification finale
Section intitulée « Vérification finale »node -v && npm -v && git --version && xmllint --version && docker --version