Skip to content

codesketch11/food-reels-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

React Node MongoDB

🍔 Food Reels Platform (MERN)

A full-stack MERN application inspired by Instagram Reels, featuring a video-first experience where users explore food content and creators upload short-form reels.

Designed with a mobile-first UI and deployed end-to-end with authentication, media uploads, and role-based access.


🌐 Live Demo

👉 Best viewed in mobile screen (mobile-first design)


📸 App Preview

🏠 Welcome

🔐 User Login

🎥 Reels Feed

📌 Saved Meals

👨‍🍳 Food Partner Profile

➕ Create Food Item


🚀 Features

👤 User

  • 🔐 Register & Login (JWT Authentication with cookies)
  • 🎥 Browse food reels (video-based UI)
  • ❤️ Like food items
  • 📌 Save food items
  • 🧾 View saved meals
  • 🏪 Visit food partner profiles

🧑‍🍳 Food Partner

  • 🔐 Register & Login
  • 👤 Profile with uploaded food items
  • 🎥 Upload food reels (video + description)
  • ➕ Create new food items
  • 🚪 Logout functionality

🧠 Tech Stack

Frontend

  • React (Vite)
  • Custom CSS (mobile-first UI)
  • Axios
  • React Router

Backend

  • Node.js
  • Express.js
  • MongoDB Atlas + Mongoose
  • JWT Authentication
  • Cookie-based auth (httpOnly)

🔐 Authentication & Security

  • JWT stored in cookies
  • Role-based access (User vs Food Partner)
  • Protected routes for content creation
  • Secure API calls using withCredentials

🚀 Deployment

  • Frontend deployed on Render (Static Site)
  • Backend deployed on Render (Web Service)
  • MongoDB Atlas used as cloud database

📂 Project Structure

├── Backend/
│   ├── src/
│   │   ├── controllers/    # Request handlers & logic
│   │   ├── models/         # Database schemas
│   │   ├── routes/         # API endpoint definitions
│   │   ├── middlewares/    # Custom middleware 
│   │   ├── services/       # 3rd party integrations
│   │   ├── db/             # Database connection setup
│   │   └── app.js          # App configuration
│   └── server.js           # Entry point / Server start
│
└── Frontend/
    ├── src/
    │   ├── assets/         # Images, and static files
    │   ├── components/     # Reusable UI components
    │   ├── pages/          # Full-page views
    │   ├── routes/         # Client-side routing logic
    │   ├── styles/         # CSS or Sass files
    │   ├── App.jsx         # Root component
    │   └── main.jsx        # App entry point


⚙️ Installation

1. Clone repo

git clone https://github.com/codesketch11/food-reels-app.git

2. Backend setup

cd Backend
npm install

Create .env:

PORT=3000
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_secret

Run:

npm run dev

3. Frontend setup

cd Frontend
npm install
npm run dev

🎯 Key Highlights

  • Fully deployed full-stack application (frontend + backend)
  • Role-based authentication system (User vs Food Partner)
  • Video upload & media handling using multipart/form-data
  • Mobile-first UI with reel-style interaction
  • RESTful API design with protected routes

🙌 Author

Built by Tushar Kamble

Focused on building real-world scalable full-stack applications.

About

Mobile-first MERN food reels app with JWT auth, likes, saves, and creator uploads

Topics

Resources

Stars

Watchers

Forks

Contributors