Skip to content
/ SWIGGY Public

A full-stack web application inspired by Swiggy, replicating its core functionality and user experience. Built to practice real-world web development, database design, and secure user authentication using modern technologies across the MERN stack.

Notifications You must be signed in to change notification settings

Eish-1/SWIGGY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

🍽️ SwiggyClone – Food Ordering & Restaurant Discovery App

A full-stack web application inspired by Swiggy, replicating its core functionality and user experience. Built to practice real-world web development, database design, and secure user authentication using modern technologies across the MERN stack.


🚀 Features

  • 🧭 Discover restaurants and explore menus
  • 👤 User registration and login with secure JWT authentication
  • 🛒 Add items to cart, place orders (simulated)
  • 🧾 Manage orders, view order history
  • 💻 Responsive and modern UI using Tailwind CSS
  • 🔐 Protected routes for logged-in users

🛠️ Tech Stack

Frontend:

  • React.js
  • Tailwind CSS
  • Axios

Backend:

  • Node.js
  • Express.js
  • MongoDB
  • JWT (JSON Web Tokens) for authentication

🧑‍💻 Getting Started (Local Setup)

📦 Prerequisites

  • Node.js and npm installed
  • MongoDB installed and running locally

📁 Directory Structure

root/
├── Frontend/ # React frontend
└── Backend/ # Express backend \

🔧 Installation

  1. Clone the repository
git clone https://github.com/Eish-1/SWIGGY.git
cd SWIGGY
  1. Install Dependencies
cd Frontend && npm install   # for frontend
cd ../Backend && npm install   # for backend
  1. Start Development Servers
cd Frontend && npm run dev   # start backend server
cd ../Backend && npm start  # start frontend
  1. Environment Variables

Create a .env file in the /server directory with the following:

PORT=5000
MONGO_URI=mongodb://localhost:27017/swiggyclone
JWT_SECRET=your_jwt_secret

Screenshots of the application:

image

  • For viewing restaurants and menu items

image

image

  • For Login or registration:

image

image

  • Viewing orders, carts and owner’s restaurants:

image

image

image

image

image

Learnings from this project

  • Implemented full-stack features using the MERN stack

  • Strengthened API handling, secure authentication, and role-based access

  • Gained experience with React hooks, routing, and state management

📈 Future Improvements

Payment gateway integration (Razorpay/Stripe)

Admin dashboard for restaurant partners

Order tracking and delivery simulation

Better error handling and 404 pages

About

A full-stack web application inspired by Swiggy, replicating its core functionality and user experience. Built to practice real-world web development, database design, and secure user authentication using modern technologies across the MERN stack.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published