How tanmay-tiwaricyber/food-tracker works
Project type and purpose
• Food Tracker is a modern full-stack web application built with Next.js (React), Tailwind CSS, and Firebase.
• It lets users log food, track expiry, and get AI-driven recipe & storage tips via the Gemini 2.0 Flash integration.
File structure
• app/
• layout.tsx, page.tsx and globals.css under app/ indicate a Next.js 13+ “app” directory structure using React Server Components and Client Components.
• app/api/gemini/route.ts is a serverless API route that handles AI calls to Gemini.
• components/
• UI building blocks and dialog components live in components/ and components/ui/, suggesting a design-system approach.
• hooks/ for shared React hooks (useMobile, useToast)
• lib/ contains firebase.ts (initializes Firebase SDK), localStorage utils, and misc utilities
• scripts/ for environment setup and testing integrations (Firebase, Gemini)
• public/, styles/, tailwind.config.ts for styling & static assets
• types/ for TypeScript data models (e.g., types/food.ts)
README for additional insights
• Confirms Next.js, Tailwind CSS, Firebase, TypeScript, and Gemini 2.0 Flash AI integration
• Features: food logging, expiry tracking, AI recipes, storage tips, meal plans