Salmon Fit
Frontend code of salmonfit.com
Developing
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 -- --openBuilding
To create a production version of your app:
npm run sync
npm run buildYou can preview the production build with npm run preview.
Editing the menu
- 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