npm i
npm run db:generate
Indice : Math.random() : génère un nombre entre 0 et 1 Math.floor() arrondie un nombre à l'entier inférieur
import citations from "./citations.json" => retourne un tableau javascript
npm i
npm run db:generate
Indice : Math.random() : génère un nombre entre 0 et 1 Math.floor() arrondie un nombre à l'entier inférieur
import citations from "./citations.json" => retourne un tableau javascript