Frontend code of skating.id
Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run sync
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openTo create a production version of your app:
npm run sync
npm run buildYou can preview the production build with npm run preview.
- Edit the CSV file located in src/lib/data/menu.csv
- Add/Edit hi-res images in src/lib/assets/brand/, ensure the file name matches item [brand]-[name] in
product.csv(e.g. brand: "Brand Name" name: "Item Name" will have "brand-name-item-name.webp") - Run
node build-product.js, it will generatesrc/lib/data/product.json,src/lib/productThumbnailPhotoMap.ts&src/lib/productDetailPhotoMap.ts