Giter VIP home page Giter VIP logo

imatularyan / food-ordering-web-app Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 6.6 MB

An interactive Food Ordering Web App enabling users to search for restaurants, view menus, and manage orders in real-time. Features include cuisine displays, cart management, and an upcoming user login for personalized experiences. Built with React, Redux, and TailwindCSS.

Home Page: https://eatupnow.netlify.app/

JavaScript 99.78% HTML 0.19% CSS 0.02%
jest lazy-loading parcel-bundler react react-hooks react-router redux chunking hooks propdrilling

food-ordering-web-app's Introduction

Namaste React Live course ๐Ÿš€ by Akshay saini

Food Ordering Web App

Introduction

The Food Ordering Web App is an interactive application that allows users to search and select their favorite foods or restaurants. It displays all available cuisines, dishes, and foods served by a selected restaurant, enabling customers to manage their orders effectively. This app also features a cart section where users can add and remove food quantities. User login functionality is under development to offer a more personalized experience.

Features

  • Search Functionality: Enables users to search for their preferred restaurants and foods.
  • Cuisine and Dish Display: Showcases all cuisines and dishes available from a selected restaurant.
  • Cart Management: Allows users to add or remove items in their cart and see updates in real-time.
  • User Login: (In Development) To provide users with a personalized ordering experience.

Technologies

  • Front-end: React, React-DOM, React-Redux, React Router DOM, TailwindCSS, Formik
  • State Management: ReduxJS/Toolkit, React Hooks, UserContext API
  • Development Tools: Babel (Core, Preset-Env, Preset-React), Parcel, Jest, @testing-library/react, PostCSS
  • Techniques: Custom Hooks, Lazy Loading, Chunking, Prop Drilling
  • APIs: Swiggy API (Assumed for demonstration purposes)

CORS Policy

The app might face Cross-Origin Resource Sharing (CORS) issues when interacting with external APIs due to browser security measures. During development, ensure the backend server is configured to include appropriate CORS headers. For production, configure the server to allow requests from your domain.

Project Structure

/food-ordering-web-app
โ”œโ”€โ”€ .parcel-cache/
โ”œโ”€โ”€ dist/
โ”œโ”€โ”€ node_modules/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ assets/
โ”‚   โ”‚   โ””โ”€โ”€ img/            # All images used in the app
โ”‚   โ”œโ”€โ”€ components/         # React components
โ”‚   โ”‚   โ”œโ”€โ”€ __tests__/      # Test cases for components
โ”‚   โ”‚   โ”œโ”€โ”€ About.js
โ”‚   โ”‚   โ”œโ”€โ”€ Body.js
โ”‚   โ”‚   โ”œโ”€โ”€ Cart.js
โ”‚   โ”‚   โ”œโ”€โ”€ Contact.js
โ”‚   โ”‚   โ”œโ”€โ”€ Error.js
โ”‚   โ”‚   โ”œโ”€โ”€ FoodItem.js
โ”‚   โ”‚   โ”œโ”€โ”€ Footer.js
โ”‚   โ”‚   โ”œโ”€โ”€ Header.js
โ”‚   โ”‚   โ”œโ”€โ”€ Help.js
โ”‚   โ”‚   โ”œโ”€โ”€ Modal.js
โ”‚   โ”‚   โ”œโ”€โ”€ ProfileClass.js
โ”‚   โ”‚   โ”œโ”€โ”€ RestaurantCard.js
โ”‚   โ”‚   โ”œโ”€โ”€ RestaurantMenu.js
โ”‚   โ”‚   โ”œโ”€โ”€ Shimmer.js
โ”‚   โ”‚   โ”œโ”€โ”€ ShimmerMenu.js
โ”‚   โ”œโ”€โ”€ mocks/              # Mock data
โ”‚   โ”‚   โ”œโ”€โ”€ data.js
โ”‚   โ”‚   โ”œโ”€โ”€ dummyLogo.js
โ”‚   โ”œโ”€โ”€ utils/              # Utilities and custom hooks
โ”‚   โ”‚   โ”œโ”€โ”€ cartSlice.js
โ”‚   โ”‚   โ”œโ”€โ”€ help.js
โ”‚   โ”‚   โ”œโ”€โ”€ store.js
โ”‚   โ”‚   โ”œโ”€โ”€ useOnline.js
โ”‚   โ”‚   โ”œโ”€โ”€ UserContext.js
โ”‚   โ”‚   โ”œโ”€โ”€ useRestaurant.js
โ”‚   โ”œโ”€โ”€ App.js
โ”‚   โ”œโ”€โ”€ constants.js
โ”œโ”€โ”€ .babelrc
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .postcssrc
โ”œโ”€โ”€ index.css
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ jest.config.js
โ”œโ”€โ”€ package-lock.json
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ tailwind.config.js

Installation

  1. Clone the repository
git clone https://github.com/imatularyan/food-ordering-web-app.git
cd food-ordering-web-app
  1. Install dependencies
npm install
  1. Start the development server
npm start

The server will run on http://localhost:1234 by default.

Usage

After launching the server, access the app at http://localhost:1234. Here, you can explore restaurants, manage your orders in the cart, and more.

Contributing

Contributions are welcome! Please follow this workflow for contributions:

  1. Fork the repository.
  2. Create a new branch for your feature (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a pull request.

License

This project is open source and available under the MIT License.

food-ordering-web-app's People

Contributors

imatularyan avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

bhanugit123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.