food-website

Foodie - A Full-Stack Food Ordering Platform

A Swiggy-inspired, feature-rich food ordering web application built with the MERN stack.

🥘 About The Project

Foodie is a comprehensive, full-stack web application inspired by Swiggy. It allows users to browse restaurants, view menus, and add items to their cart. The project features a complete user authentication system and is built with a modern MERN (MongoDB, Express, React, Node.js) stack.


💻 Tech Stack

Frontend:

Backend:

Development Tools:


🧿 Key Features


� Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

Installation

  1. Clone the repository:
    git clone https://github.com/dkmaheshwari/food-website.git
    
  2. Navigate to the project directory:
    cd food-website
    
  3. Install frontend dependencies:
    npm install
    
  4. Install backend dependencies:
    cd backend
    npm install
    
  5. Create a .env file in the backend directory and add your environment variables:
    MONGO_URI=your_mongodb_connection_string
    JWT_SECRET=a_strong_secret_key_for_jwt
    PORT=5000
    

Running the Application

  1. Seed the database (run this from the backend directory):
    node seeder.js
    
  2. Start the backend server (run this from the backend directory):

    npm start
    

    The backend will be running on http://localhost:5000.

  3. Start the frontend development server (run this from the root food-website directory):
    npm start
    

    The frontend will open in your browser at http://localhost:1234.


✨ Live Demo

Check out the live demo here: https://dkmaheshwari.github.io/food-website/