Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.13 KB

README.md

File metadata and controls

33 lines (22 loc) · 1.13 KB

Salmon Fit

Netlify Status

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 -- --open

Building

To create a production version of your app:

npm run sync
npm run build

You can preview the production build with npm run preview.

Editing the menu

  1. Edit the CSV file located in src/data/menu.csv
  2. 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")
  3. Run node build-menu.js, it will generate src/data/menu.json, src/lib/menuThumbnailPhotoMap.ts & src/lib/menuDetailPhotoMap.ts