Skip to content

portiali/dine_notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

🍽️ Dine on Campus Notifier

A full-stack mobile app + backend to notify you when your favorite foods (like avocado, pancakes, or tofu) are served in Northwestern dining halls.

Built with:

  • 🧠 Python backend (local JSON parsing + push notifications via Expo)
  • 📱 React Native frontend (Expo app with push token collection)

📦 Features

  • Parses menus from pre-downloaded JSON files
  • Matches keywords like "fruit", "pancake", etc.
  • Sends push notifications to your phone when favorite items are served
  • Notifies you if none of your loved items appear

🛠 Backend Setup

1. Clone the repo

git clone https://github.com/portiali/dine-on-campus-notifier.git
cd dine-on-campus-notifier

2. Set up virtual environment (recommended)

python3 -m venv venv
source venv/bin/activate

3. Install Python dependencies

pip install -r requirements.txt

4. Add downloaded menu files

Place your AllisonBreakfast.json, AllisonLunch.json, and AllisonDinner.json inside:

data/logs/

📱 Frontend Setup (Expo App)

1. Go to the mobile app directory

cd mobile-app

2. Initialize the Expo project (if not already set up)

npx create-expo-app . --template blank

3. Install dependencies

npx expo install expo-notifications expo-device

4. Register for push notifications

In App.js:

const token = (await Notifications.getExpoPushTokenAsync()).data;
console.log("Expo Push Token:", token);

Copy this token and paste it into the backend (notifier.py) under EXPO_PUSH_TOKENS.

5. Run the frontend app

npx expo start

Scan the QR code with the Expo Go app on your physical device.

🚀 Run Backend Notifier

After setting up both ends and adding your Expo push token:

python main.py

You'll receive push notifications when items match your favorites!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors