Frontend code of salmonfit.com
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 -- --open
To create a production version of your app:
npm run sync
npm run build
You can preview the production build with npm run preview
.
- Edit the CSV file located in src/data/menu.csv
- Edit the images in src/assets/menu/, ensure the file name matches item in
menu.csv
(e.g. "Salmon Fried Rice" will have "salmon-fried-rice.webp") - Run
node build-menu.js
, it will generatesrc/data/menu.json
,src/lib/menuThumbnailPhotoMap.ts
&src/lib/menuDetailPhotoMap.ts