How muskan-773/foodreels works
FoodReels lets restaurants publish short food videos and users discover, search, like, save, and share them. The main flow is partner authentication and optional AI description generation, followed by video upload and feed publication; users then browse reels and interact with them. The frontend also provides restaurant and user profiles, saved collections, and video detail views. Backend edges follow the shown route/controller wiring and controller dependencies; some frontend capabilities are documented or indexed but their implementation was not excerpted, so those connections are omitted where unverified.
Main entry points: AppRoutes.jsx Page routes · food.controllers.js Food operations · auth.middleware.js JWT authentication · app.js Express API
Components 31
Frontend experience
- React app
frontend/src/App.jsx - Page routes
frontend/src/routes/AppRoutes.jsx - Reel feed
frontend/src/components/ReelFeed.jsx - Home feed
frontend/src/pages/general/Home.jsx - Food search
frontend/src/pages/general/Search.jsx - Saved collection
frontend/src/pages/general/Saved.jsx - Video detail
frontend/src/pages/general/VideoPlayer.jsx - User profile
frontend/src/pages/general/UserProfile.jsx - Partner registration
frontend/src/pages/auth/FoodPartnerRegister.jsx - User registration
frontend/src/pages/auth/UserRegister.jsx - Create food reel
frontend/src/pages/food-partner/CreateFood.jsx - Restaurant profile
frontend/src/pages/food-partner/Profile.jsx
API routing and auth
- Express API
backend/src/app.js - Auth routes
backend/src/routes/auth.routes.js - Food routes
backend/src/routes/food.routes.js - Partner routes
backend/src/routes/food-partner.routes.js - JWT authentication
backend/src/middlewares/auth.middleware.js
Content and engagement
- Food operations
backend/src/controllers/food.controllers.js - Food records
backend/src/models/food.model.js - Like records
backend/src/models/likes.model.js - Saved records
backend/src/models/save.model.js
Identity and profiles
- Account operations
backend/src/controllers/auth.controller.js - Partner profiles
backend/src/controllers/food-partner.controller.js - User records
backend/src/models/user.model.js - Partner records
backend/src/models/foodpartner.model.js
External services
- Video storage client
backend/src/services/storage.service.js - Description generation
backend/src/services/ai.service.js
Other components
- Food explorer
- Restaurant partner
- ImageKit
- Google Gemini
Connections 40
- React app → Page routes: renders
frontend/src/App.jsx - Page routes → Home feed: routes to
frontend/src/routes/AppRoutes.jsx - Page routes → Saved collection: routes to
frontend/src/routes/AppRoutes.jsx - Page routes → Food search: routes to
frontend/src/routes/AppRoutes.jsx - Page routes → Video detail: routes to
frontend/src/routes/AppRoutes.jsx - Page routes → User profile: routes to
frontend/src/routes/AppRoutes.jsx - Page routes → Restaurant profile: routes to
frontend/src/routes/AppRoutes.jsx - Page routes → Create food reel: routes to
frontend/src/routes/AppRoutes.jsx - Page routes → Partner registration: routes to
frontend/src/routes/AppRoutes.jsx - Page routes → User registration: routes to
frontend/src/routes/AppRoutes.jsx - Home feed → Reel feed: renders
frontend/src/pages/general/Home.jsx - Saved collection → Reel feed: renders
frontend/src/pages/general/Saved.jsx - Food search → Express API: fetches food
frontend/src/pages/general/Search.jsx - Food explorer → Home feed: browses
README.md - Food explorer → Food search: searches
README.md - Food explorer → Saved collection: views saved
README.md - Food explorer → User profile: views profile
README.md - Restaurant partner → Create food reel: publishes reel
README.md - Express API → Auth routes: mounts
backend/src/app.js - Express API → Food routes: mounts
backend/src/app.js - Express API → Partner routes: mounts
backend/src/app.js - Auth routes → Account operations: dispatches
backend/src/routes/auth.routes.js - Food routes → Food operations: dispatches
backend/src/routes/food.routes.js - Partner routes → Partner profiles: dispatches
backend/src/routes/food-partner.routes.js - Auth routes → JWT authentication: guards identity
backend/src/routes/auth.routes.js - Food routes → JWT authentication: guards actions
backend/src/routes/food.routes.js - Partner routes → JWT authentication: guards updates
backend/src/routes/food-partner.routes.js - Account operations → User records: reads and writes
backend/src/controllers/auth.controller.js - Account operations → Partner records: reads and writes
backend/src/controllers/auth.controller.js - JWT authentication → User records: loads user
backend/src/middlewares/auth.middleware.js - JWT authentication → Partner records: loads partner
backend/src/middlewares/auth.middleware.js - Partner profiles → Partner records: manages profile
backend/src/controllers/food-partner.controller.js - Partner profiles → Food records: loads partner food
backend/src/controllers/food-partner.controller.js - Food operations → Food records: reads and writes
backend/src/controllers/food.controllers.js - Food operations → Like records: updates likes
backend/src/controllers/food.controllers.js - Food operations → Saved records: updates saves
backend/src/controllers/food.controllers.js - Food operations → Video storage client: uploads video
backend/src/controllers/food.controllers.js - Food operations → Description generation: requests description
backend/src/controllers/food.controllers.js - Video storage client → ImageKit: uploads file
backend/src/services/storage.service.js - Description generation → Google Gemini: generates text
README.md