Frontend-only PWA for tracking meals, recipes, ingredients, and daily nutrition goals.
pnpm install
pnpm devThe dev server runs with HTTPS via a local self-signed certificate (through vite-plugin-mkcert) so camera access and PWA behavior work reliably.
Yes.
- Start dev server with
pnpm dev. - Open
https://localhost:5173(or the shown HTTPS URL). - In Chrome/Edge: open the install menu (
Install appin address bar). - In Safari: Share →
Add to Dock/Add to Home Screen.
Notes:
- Camera permissions require secure context (HTTPS or localhost).
- For final service-worker behavior, also test preview build:
pnpm build
pnpm previewThis repo already includes a workflow at .github/workflows/deploy.yml that deploys on push to main.
- Push repository to GitHub.
- In repository settings, open
Pages. - Set source to
GitHub Actions. - Ensure default branch is
main.
- Commit and push to
main. - Wait for
Deploy to GitHub Pagesworkflow to finish. - Open the published URL from the workflow output.
- Open the published
https://<user>.github.io/food-tracker/URL. - Use browser install action (
Install app/Add to Home Screen).
Because GitHub Pages is HTTPS, camera + PWA install work there as expected.