How thisapointer/eat-up works
Eat-Up is a restaurant-discovery and food-collection app: users find restaurants, record menu visits, and build visit and XP-based spoon-grade progress. The frontend routes users through discovery, restaurant details, certification, and profile/records screens; its APIs connect to a FastAPI backend organized around authentication and restaurant, menu, visit, and favorite domains. The sampled sources establish backend router registration and parts of authentication and restaurant filtering; many feature endpoints and frontend API connections are represented at their documented or indexed subsystem level, with unverified links omitted or dashed.
Main entry points: App.jsx App routes · MyPage.jsx Profile and records · rests.py Restaurant operations · main.py FastAPI application
Components 26
App experience
- App routes
frontend/src/App.jsx - Restaurant discovery
frontend/src/pages/MapsMain.jsx - Explorer state
frontend/src/hooks/useRestaurantExplorer.js - Restaurant details
frontend/src/components/restaurant/RestaurantSummary.jsx - Visit certification
frontend/src/pages/CertPage.jsx - Profile and records
frontend/src/pages/MyPage.jsx - Spoon grade rules
frontend/src/data/spoonGradeData.js
Frontend API
- API configuration
frontend/src/api/apiConfig.js - Restaurant API
frontend/src/api/restaurantApi.js - Account APIs
frontend/src/api/authApi.jsx - Profile APIs
frontend/src/api/mypageApi.js - Menu, visit, favorite APIs
frontend/src/api
Backend services
- FastAPI application
backend/app/main.py - Authentication
backend/app/routers/auth.py - Token user lookup
backend/app/routers/dependencies.py - Version 1 endpoints
backend/app/routers/v1/endpoints - Version 2 restaurants
backend/app/routers/v2/endpoints/rests.py - Restaurant operations
backend/app/services/rests.py - User operations
backend/app/services/users.py - Visit certification
backend/app/services/cert.py
Domain data
- Database sessions
backend/app/database/session.py - SQL database
backend/app/database/connection.py - Restaurant model
backend/app/models/rests.py - User and favorites
backend/app/models/users.py - Visit records
backend/app/models/cert.py
Other components
- Food explorer
Connections 25
- Food explorer → App routes: opens
frontend/src/App.jsx - App routes → Restaurant discovery: routes to
frontend/src/App.jsx - App routes → Visit certification: routes to
frontend/src/App.jsx - App routes → Profile and records: routes to
frontend/src/App.jsx - Explorer state → Restaurant API: requests data
frontend/src/hooks/useRestaurantExplorer.js - Restaurant details → Menu, visit, favorite APIs: loads menu images
frontend/src/components/restaurant/RestaurantSummary.jsx - Profile and records → Profile APIs: loads profile
frontend/src/pages/MyPage.jsx - Profile and records → Menu, visit, favorite APIs: updates favorites
frontend/src/pages/MyPage.jsx - Profile and records → Spoon grade rules: uses grade rules
frontend/src/pages/MyPage.jsx - Food explorer → Restaurant API: requests
- FastAPI application → Authentication: registers
backend/app/main.py - FastAPI application → Version 1 endpoints: registers
backend/app/main.py - FastAPI application → Version 2 restaurants: registers
backend/app/main.py - Version 2 restaurants → Restaurant operations: delegates
backend/app/routers/v2/endpoints/rests.py - Version 1 endpoints → Visit certification: dispatches certification
backend/app/routers/v1/endpoints/cert.py - Version 1 endpoints → User operations: dispatches user operations
backend/app/routers/v1/endpoints/users.py - Authentication → User and favorites: queries user
backend/app/routers/auth.py - Authentication → Database sessions: uses session
backend/app/routers/auth.py - Token user lookup → User and favorites: loads current user
backend/app/routers/dependencies.py - Token user lookup → Database sessions: uses session
backend/app/routers/dependencies.py - Restaurant operations → Restaurant model: queries restaurants
backend/app/services/rests.py - Restaurant operations → User and favorites: reads favorites
backend/app/services/rests.py - Restaurant operations → Visit records: checks visits
backend/app/services/rests.py - Database sessions → SQL database: creates sessions
backend/app/database/session.py - API configuration → FastAPI application: connects over HTTP