Skip to content

AvinashMarkad/Food-Delivary-Web-App

Repository files navigation

Here's a template for your GitHub README file for a React project that displays food items, as shown in the screenshot. You can customize it to fit your project's details:


Food Ordering App

A responsive web application built with React that allows users to browse and order food items from various restaurants. This app features a user-friendly interface and is designed to provide a seamless user experience across different devices.

image image image

Features

  • Responsive Design: Optimized for both desktop and mobile devices.
  • Food Item Listings: Display a list of food items with images, ratings, cuisine type, price, and delivery time.
  • Search Functionality: Easily search for food items using the search bar.
  • Navigation Bar: Access different pages like Home, About, Contact, and Cart.
  • Hover Effects: Interactive hover effects on food item cards for a better user experience.

Technologies Used

  • Frontend: React, CSS
  • Styling: Flexbox for layout, media queries for responsiveness
  • Icons & Images: Used to visually represent food items and enhance the UI

Getting Started

Prerequisites

  • Node.js and npm installed on your machine

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/food-ordering-app.git
    
  2. Navigate to the project directory:
    cd food-ordering-app
    
  3. Install the dependencies:
    npm install
    
  4. Run the application:
    npm start
    

Project Structure

  • src/: Contains the main source code for the React application
    • components/: Reusable components such as Navbar, FoodCard, etc.
    • assets/: Images and other static assets
    • App.js: Main application component
    • index.js: Entry point of the React application

Contribut

Contributions are welcome! Please feel free to submit a pull request or open an issue if you have any suggestions or improvements.

01 Inception

Coding :

  • Set up all the tools in your laptop
    • VS Code
    • Chrome
    • Extensions of Chrome
  • Create a new Git repo
  • Build your first Hello World program using,
    • Using just HTML
    • Using JS to manipulate the DOM
    • Using React
      • use CDN Links
      • Create an Element
      • Create nested React Elements
      • Use root.render

02 - Igniting Our App

Coding :

In your existing project

  • initialize npm into your repo
  • install react and react-dom`
  • remove CDN links of react
  • install parcel
  • ignite your app with parcel
  • add script for "start" and "build" with parcel commands
  • add .gitignore file
  • add browserlists
  • build a production version of your code using parcel build

03 - Talk is Cheap, show me the code!

Coding Assignment:

  • Build a Food Ordering App
    • Think of a cool name for your app
    • Build an AppLayout
    • Build a Header Component with Logo & Nav Items & Cart
    • Build a Body Component
      • Build RestaurantList Component
      • Build RestaurantCard Component
        • Use static data initially
        • Make your card dynamic(pass in props)
          • Props - passing arguments to a function - Use Destructuring & Spread operator
        • Render your cards with dynamic data of restaurants
        • Use Array.map to render all the restaurants

04 - Exploring the world

Coding Assignment:

  • Play with the useEffect Hook to see when it is called? (before or after render)
  • Play with the dependency array in useEffect Hook.
  • Play with the developer console by putting a debugger in render and useEffect.
  • Call an actual API call.
  • Handle Error in your API call.
  • Build Shimmer UI when data is not loaded.
  • Render your UI with actual API data.
  • Make Search functionality work.
  • Make a Login Logout button that toggles with a state.

05 - Finding the Path

Coding Assignment:

  • Add Shimmer Effect without installing a library.
  • Install react-router-dom.
  • Create an appRouter and Provide it to the app.
  • Create a Home, About, and Contact Page with Link (use child routes).
  • Make an Error page for routing errors.
  • Create a Restaurant Page with dynamic restaurant ID.
  • (Extra) - Create a login Page using Formik Library.

Replace placeholders like your-username, [email protected], and the path to the screenshot with your actual details. This README provides a comprehensive overview of your project, making it easier for others to understand and contribute.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published