Skip to content

kalyaniugale/score-my-food

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🍽️ Score My Food

A mobile + backend app to scan foods and get a health score with positives, negatives, and additives info.

  • Backend β†’ Django REST Framework
  • Frontend β†’ React Native (Expo)

✨ Features

  • πŸ“¦ Barcode scan β†’ Get product info & health score from OpenFoodFacts
  • πŸ“ Ingredients OCR scan β†’ Take photo of label, extract ingredients, analyze
  • πŸ” Search by category/keyword β†’ Browse snacks, cereals, yogurts, etc.
  • πŸ›’ Grocery List Builder β†’ Enter items + budget β†’ get healthiest basket
  • πŸ‘€ Profile page β†’ Demo user, editable info, streaks & badges

πŸš€ Setup

1. Clone the repo

git clone https://github.com/<your-username>/score-my-food.git
cd score-my-food

2. Backend (Django)

cd backend
python -m venv venv          # create virtual env
venv\Scripts\activate        # Windows
# or source venv/bin/activate  # Mac/Linux

pip install -r requirements.txt
python manage.py migrate
python manage.py runserver 0.0.0.0:8000

βœ… Backend runs on port 8000. Check: open in browser β†’ http://<your-ip>:8000/api/ping


3. Frontend (React Native + Expo)

cd app
npm install
npm start

Scan the QR code with the Expo Go app on your phone.


🌐 Configure API URL

  1. Find your IPv4 address:

    • Windows β†’ ipconfig
    • Mac/Linux β†’ ifconfig or ip a Example: 192.168.1.42
  2. Open app/lib/api.js and set:

export const API = axios.create({
  baseURL: "http://192.168.1.42:8000",  // replace with YOUR IPv4
  timeout: 10000,
});

⚠️ Phone and laptop must be on the same Wi-Fi.


βœ… Quick Test

  • Visit http://<your-ip>:8000/api/ping β†’ should return

    { "app": "score-my-food", "ok": true }
  • In app, try:

    • Scan β†’ Barcode
    • Scan β†’ Ingredients (OCR)
    • Pantry β†’ Grocery List Builder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published