This directory contains the backend code for the FoodVision app.
database/: Database schema and queries
schema.ts: Defines the database tables and typesqueries.ts: Contains functions for interacting with the databaseservices/: External service integrations
vision.ts: Integration with Groq API for Llama 4 Maverick visionindex.ts: Main entry point for the HTTP APIPOST /api/analyze: Analyze a food image
multipart/form-data with image file and optional userIdGET /api/entries: Get food entry history
userId (optional), limit (optional), offset (optional)GET /api/stats: Get calorie statistics
userId (optional), days (optional)GROQ_API_KEY: API key for Groq (required for vision analysis)