Skip to content

Lightning323/CalorieCoach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo CalorieCoach

An AI-Powered web application designed to simplify calorie counting! Built on Node.js, Enter what you ate and let AI do the rest!

Built with Powered By

img

Key Features

  • Simple food tracking with AI: Leverages the Gemini API to parse text into individual food entries. Gemini will use existing entries from the food database, or create new food entries with estimated nutritional data when no relavant database matches are found.
  • Global food database: The app combines disparate data sources into a unified, user-editable food database. This database is public and grows with every new food you eat.
  • Ground-truth sources: Integrates the Open Food Facts API to retrieve real calorie and nutritional data for easy adding into the food database.
  • Day-by-day tracking: The app records total calories eaten every day. You can easily view how you accomplished your calorie goals on a daily and weekly basis.

Installation & Configuration

Database

It is recommended to host your database through MongoDB directly: https://www.mongodb.com/

Obtain a connection string (URL) to your database, and place it into your .env file

Set up Environment Variables:

Create a .env file in the root directory and add the following:

APP_VERSION=1.0.0
MONGODB_URI=your_mongodb_connection_string
GEMINI_API_KEY=your_google_ai_api_key

APIs

Open Food Facts API

https://github.com/openfoodfacts/openfoodfacts-js

(No API key required!)

Getting started with Gemini API

https://ai.google.dev/gemini-api/docs/quickstart

Obtain an API key and enter it in your .env file as shown above

About

A web application built in Node.JS to track calories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors