npm create vite@latest
npm i
npm run dev
le module debug est un must !
https://www.npmjs.com/package/debug
set DEBUG=baseRange:arg,http & node app.js
Si votre terminal est git bash lancer :
DEBUG=baseRange:arg,http node app.js
Si votre terminal est PowerShell lancer :
$env:DEBUG='baseRange:arg,http' ; node app.js
Création d'un déploiement.
Créez son propre server JSON !
https://jsonplaceholder.typicode.com/
https://my-json-server.typicode.com/dupontdenis/myJsonServer
En action : https://github.com/dupontdenis/myJsonServer.git
Créer un fichier app.js
Créer un fichier api.http