Skip to content

AbhinavGGarg/NutriPath-

Repository files navigation

NutriPath (Static Multipage MVP)

NutriPath is an action-first nutrition decision-support platform for U.S. households.

Core positioning:

NutriPath helps families and caregivers spot nutrition risk early, build better meals from what they already have, and find nearby support when access is limited.

Pages

  • index.html - Home
  • assessment.html - Assessment + inline results
  • map.html - Resource Map
  • meal-builder.html - Smart Meal Builder + Recipe tools
  • learn.html - Nutrition Action Hub
  • auth.html - Log in / Sign up + saved history view
  • results.html - Optional standalone results view

Run locally

python3 -m http.server 8080

Open http://localhost:8080.

Runtime API config (no hardcoded keys)

NutriPath reads keys from window.NUTRIPATH_KEYS in runtime-config.js.

  1. Copy runtime-config.example.js -> runtime-config.js.
  2. Add keys locally:
    • voiceApiKey for https://dev.voice.ai/api/v1
    • recipeApiKey for https://api.spoonacular.com (optional local fallback only)

If keys are missing, the app falls back gracefully:

  • Voice: browser speech synthesis
  • Recipe API: secure server proxy (recommended in production)

Spoonacular proxy (recommended for real users)

Recipe tools now call a Vercel serverless endpoint at /api/spoonacular, so end users do not need to paste API keys.

Set this environment variable in Vercel project settings:

  • SPOONACULAR_API_KEY
  • Optional alias also supported: RECIPE_API_KEY

Local development fallback:

  • If the proxy is unavailable locally, the app can still use runtime-config.js recipeApiKey.

Deploy to Vercel

  • Framework preset: Other
  • Build command: leave empty
  • Output directory: leave empty (root)

Service worker

  • Versioned cache in sw.js
  • Network-first strategy for HTML/CSS/JS to reduce stale deploy issues
  • App shell caching for baseline offline behavior

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors