Skip to content

Aswath2005/calorify-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calorify

AI-powered calorie tracking app with smart food recognition and personalized workout planning.

Features

  • 🔐 Authentication - Secure JWT-based login and signup
  • 🍽️ Smart Food Logging - AI image recognition powered by Google Gemini
  • 🏋️ Workout Tracking - MET-based calorie burn calculations
  • 📊 Analytics Dashboard - Interactive charts showing daily and weekly progress
  • 🤖 AI Assistant - Nutrition and fitness chatbot for personalized advice
  • 📅 Workout Planner - AI-generated 7-day workout plans based on your goals
  • 📱 Responsive Design - Optimized for all devices

Tech Stack

  • Frontend: Next.js 15 (App Router), TypeScript, Tailwind CSS 4
  • Charts: Recharts
  • API: Axios with interceptors
  • Icons: Lucide React
  • Date Utils: date-fns

Quick Start

# Install dependencies
npm install

# Run development server
npm run dev

Open http://localhost:3000

Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm start - Start production server
  • npm run lint - Run ESLint

Environment Variables

Create a .env.production file:

NEXT_PUBLIC_API_URL=https://your-backend-url.vercel.app

Project Structure

src/
├── app/                    # Next.js pages
│   ├── auth/              # Login & signup
│   └── dashboard/         # Main app pages
├── components/            # React components
│   ├── ui/               # Reusable UI
│   ├── forms/            # Food & workout forms
│   └── chat/             # AI chatbot
├── services/             # API integration
├── hooks/                # Custom hooks
└── types/                # TypeScript definitions

Key Features

AI Food Recognition

Upload food images and get instant nutritional information using Google Gemini AI.

Workout Planner

Get personalized 7-day workout plans based on your fitness goals (muscle gain, weight loss, endurance, general fitness).

Smart Analytics

Track your daily calorie intake vs burned calories with interactive charts and weekly summaries.

AI Chatbot

Ask questions about nutrition, workouts, and health - get instant AI-powered responses.

Live Demo

API Endpoints

  • /api/auth/* - Authentication
  • /api/foods - Food logging
  • /api/workouts - Workout tracking
  • /api/calories/* - Statistics and analytics
  • /api/chatbot/message - AI assistant
  • /api/gemini/* - Food recognition

Built with ❤️ using Next.js and TypeScript

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors