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)
- π¦ 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
git clone https://github.com/<your-username>/score-my-food.git
cd score-my-food
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
cd app
npm install
npm start
Scan the QR code with the Expo Go app on your phone.
-
Find your IPv4 address:
- Windows β
ipconfig
- Mac/Linux β
ifconfig
orip a
Example:192.168.1.42
- Windows β
-
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,
});
-
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