Skip to content

An online food ordering App and only the front end where the data for the backend is coming from the swiggy api

Notifications You must be signed in to change notification settings

MihirRajChowdhury/food-ordering

Repository files navigation

Food Ordering App

jpg

This is a frontend application for ordering food, built using React and Swiggy's live API. It was developed as part of the "Namaste React" course by Akshay Saini, which teaches React fundamentals through hands-on projects. The app allows users to browse restaurants, search for specific options, filter by cuisine, and manage a cart—all powered by real-time data from Swiggy.

Technologies Used

Technology/Library Purpose
React Building the user interface
Parcel.js Bundling the application
Tailwind CSS Styling components
React Router Handling navigation between pages
Context API Managing application state
Swiggy API Fetching restaurant and menu data

Features

  • Dynamic Restaurant Listings: Fetches real-time restaurant data from Swiggy's API.
  • Search Functionality: Find restaurants by name or keyword.
  • Cuisine Filters: Narrow down options by cuisine type.
  • Shimmer UI: Smooth loading states for better user experience.
  • Cart Management: Add and remove items to/from the cart.

Installation

Follow these steps to set up the project locally:

  1. Clone the repository:
    git clone https://github.com/MihirRajChowdhury/food-ordering.git
    
  2. Navigate to the project directory:
    cd food-ordering
  3. Install dependencies:
    npm install
  4. Start the development server:
    npm start

Usage

Open your browser and go to http://localhost:3000. Browse the homepage to see a list of restaurants. Use the search bar to find specific restaurants or apply filters by cuisine. Click on a restaurant to view its menu, then add items to your cart. A stable internet connection is required for API requests.

Project Structure

src/: Contains React components, utilities, and logic. public/: Holds static assets like images or the index.html file. package.json: Lists dependencies and scripts. Contributing Contributions are welcome! To contribute:

Open an issue to discuss your proposed changes.

Fork the repository. Create a pull request with your updates.

Acknowledgments

Akshay Saini and NamasteDev for the amazing "Namaste React" course that inspired this project. Swiggy for providing the public API that powers the app.

About

An online food ordering App and only the front end where the data for the backend is coming from the swiggy api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages