React Native Food App

Learn to build a food delivery app

Foodly food delivery app based on react native boasts a dynamic backend crafted with Node.js and Express, providing a solid foundation for high-performance operations. MongoDB is employed for efficient data handling, and Firebase Admin is seamlessly integrated to enhance backend management capabilities.

What you’ll learn

  • React Native Food App.
  • Build Nodejs Rest Api.
  • Build With Expo.
  • Google Map with Detail Explanation.

Course Content

  • Introduction –> 5 lectures • 26min.
  • Home section –> 13 lectures • 1hr 24min.
  • Food Screen –> 13 lectures • 1hr 12min.
  • Cart section –> 9 lectures • 39min.
  • Tabview –> 2 lectures • 12min.
  • Restaurant ratings –> 4 lectures • 19min.
  • Google Maps and Directions –> 7 lectures • 44min.
  • Food tile –> 4 lectures • 23min.
  • Login context and profile –> 2 lectures • 9min.
  • Cart and food component –> 3 lectures • 21min.
  • Backend introduction –> 13 lectures • 2hr 4min.
  • Restaurant section with schema, routes and postman test –> 4 lectures • 54min.
  • Category Section with schema, routes and postman test –> 4 lectures • 51min.
  • Food section with schema, routes and postman test –> 5 lectures • 1hr 19min.
  • Cart section with schema, routes and postman test –> 6 lectures • 55min.
  • Address section with schema, routes and postman test –> 3 lectures • 39min.
  • Order section with schema, routes and postman test –> 4 lectures • 50min.
  • Driver schema, routes and postman –> 2 lectures • 21min.

Auto Draft

Requirements

Foodly food delivery app based on react native boasts a dynamic backend crafted with Node.js and Express, providing a solid foundation for high-performance operations. MongoDB is employed for efficient data handling, and Firebase Admin is seamlessly integrated to enhance backend management capabilities.

 

The frontend, developed with the latest version of React Native and Expo, features a sleek, cutting-edge user interface. Google Maps APIs are deftly incorporated for location-based services such as routes, directions, and geocoding, ensuring precise localization of users and restaurants. This geolocation accuracy allows for personalized recommendations and accurate delivery pricing. Additionally, the Distance Matrix is utilized to accurately calculate delivery costs, distances, and time estimates, ensuring a smooth and efficient user experience in our food delivery app.

Basic App Features

  1. Getting Google Api Key
  2. Hooking Context Providers to the app
  3. Getting user location with expo-location, accessing data using useContext hook
  4. Creating Home Header
  5. Reverse Geocode coordinates to get location and time function
  6. Category List using Flatlist and Image Component
  7. Pick Restaurant List Using Flatlist and Text Component
  8. Reusable Heading Component
  9. Nearby Restaurant Recommendations
  10. New foods recommendations and fastest near you component
  11. Food Stack Navigator
  12. Explanation on passing data to a screen inside of a stack
  13. Creating Food Page Buttons, Text Components and styling
  14. FoodTags flatlist and good additives list with BounceCheckBox
  15. Count for increasing the quantity
  16. Cart and orders functions and data prep
  17. Handle additives and price increment according to changes in additives
  18. TabView in react native
  19. Restaurant Page Image, Buttons and rating using rating package
  20. Restaurant rating page
  21. Delivery time, cost and distance using google distance matrix
  22. Passing data to page inside TabView using useContext hook
  23. Google maps and linking app to native maps
  24. Fetch directions using the Google direction api
  25. Displaying polyLines and markers on the map
  26. Restaurant food menu
  27. Login and passing data to Login Context
  28. Persistent CartCount using CartCount Context
  29. Category Food Component

 

Backend System Overview

1. Authentication and Authorization

  • Integration with Firebase Admin: Implement backend services using Firebase Admin SDK to manage users, roles, and permissions.
  • Role-Based Authentication: Define four distinct roles: Admin, Vendor, Client, and Driver.
  • Advanced Middleware: Create middleware functions to verify user roles and enforce access control for protected routes.

2. User Management

  • Registration and Profiles: Enable registration for different user roles, each with a unique set of data fields and validation rules.
  • Implement JSON Web Tokens (JWT) for secure, token-based user authentication.
  • Use password encryption techniques (such as bcrypt) to ensure the safety of user credentials.
  • User CRUD Operations: Allow for adding, updating, and retrieving user information.
  • Address Management: Provide functionality for users to add, update, and retrieve addresses.
  • Implement logic to maintain a single default address per user, with the ability to change the default setting.

3. Vendor-Specific Features

  • Vendor Registration: Set up a registration process for vendors, including the collection of necessary information and validation.
  • Vendor Middleware: Ensure that only vendors can access routes for managing their restaurant and food items.
  • Food Management: Develop endpoints for vendors to upload and manage their food items.

4. Recommendations and Dynamic Content

  • Location-Based Restaurant Recommendations: Create endpoints that suggest restaurants to clients based on their current location.
  • Dynamic Food Recommendations: Develop algorithms to recommend food items to users also based on user location.
  • Preparation and Delivery Time: Introduce logic to recommend food that can be prepared and delivered in the shortest possible time, considering user location.

5. Shopping Cart and Order Processing

  • Cart Management: Allow users to add and remove items from the cart.
  • Enable users to adjust the quantity of cart items.
  • Update and return the cart count whenever changes are made to the cart.
  • Order Creation and Management: Provide functionality for users to create orders and customize them with add-ons.
  • Update orders based on payment and delivery status.

6. Categories and Recommendations

  • Category Management: Allow admins to add, update, and delete categories of food.
  • Category Recommendations: Use aggregation pipelines to offer random category recommendations to users.

7. Driver-Specific Functionality

  • Driver Registration and Restrictions: Establish registration for drivers and ensure middleware restricts them to driver-related tasks.
Get Tutorial