Complete BLoC with Clean Architecture (group chat) Discount !! E-commerce App With Backend Source Code Video and Voice Chatting App Firebase Chatting App Source Code Complete Gym App BLoC State Management Source Code Complete Study App Buy Ticket Booking App Source Code Buy Travel App With Backend Source Code Complete Chat App Udemy Course Special Offer Discount !! Online Learning Course App (BLoC) Online Learning Course App (Riverpod) Online Learning Course App (Getx) Discount !! Shopping App (Provider) Cool Flutter Game Flutter Nodejs Chat App Flutter Nodejs Api And Firebase Chat App Riverpod Task Management 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.
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
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.
React Native Frontend - Feature Overview
Main Hooks and Libraries
Expo: A framework and platform for universal React applications.
useState: To manage component states such as form inputs and toggles.
useContext: To provide and consume React context for global state like user auth.
useRoute & useNavigation: For accessing the route and navigation objects from React Navigation.
expo-location: An Expo library to access location information.
useEffect: To perform side effects in function components like data fetching.
UseFonts: An Expo hook for loading custom fonts.
useRef: To reference DOM elements or store mutable values across renders.
Custom Hooks: For abstracting reusable logic into custom functions.
TabView: For tabbed navigation.
React Navigation: For screen navigation management.
react-native-maps: For integrating maps into the app.
react-native-shimmer-placeholder: To display placeholder content while data is loading.
react-native-stock-rating: For displaying and handling stock ratings.
User Management and Authentication
User registration with email and password.
Login with email and persistent storage of the login state using Async Storage.
Display user-specific content based on the time of day in the home header.
Fetch user location using Google Maps Geocoding API.
Reverse geocode the user's location to display the current address in the home header.
Provide dynamic restaurant recommendations based on user location.
Suggest new foods in the user's current district.
Recommend the nearest food options.
Restaurant Page Features
Calculate distance and cost from the restaurant to the user using Google Distance Matrix API.
Rate restaurants and display ratings.
Show restaurant menus and locations with direction polylines on maps.
Ability to launch native maps for directions.
Recommend dishes from nearby restaurants in the explore tab.
Food Page Features
Detail view for food items with options to add/remove additives and adjust quantity.
Add items to the cart with dynamic cart count updates.
Modal for ordering food with default delivery address.
Add and delete items from the cart, including those with additives.
Update CartCount context on any change in the cart.
4. 22-11-2023 bug fix restaurant incomplete data
3. 18-11-2-2023 released delivery boy app
2. 11-11-2023 solve login bug
1. 03-11-2023 first release