This repository is created to provide a structural preview of the application that is still under development. This repository contains selected sections of code copied from the original Driver Application repository. Therefore, the code in this repository cannot be successfully built. Sorry for the inconvenience and complication.
There are several Chinese restaurants offering takeaway meals to UCSD students with no delivery fee to provide more variety in food choices. To order a meal, students need to join a WeChat group where the restaurant shares an ordering link for each deal. In addition, since the link does not support any type of payment, students are responsible to complete the payment through a mobile application called Venmo. This workflow makes food ordering less flexible and accessible to students and also makes bookkeeping difficult for the restaurants.
Our project aims to improve the current food ordering system to make ordering and delivering more convenient.
I am using React Native to implement the front-end and Redux for persisting some local user data. We are storing all user data with MongoDB and using GraphQL client to send queries and receive responses from the server. We are using react-apollo as our GraphQL client to manage local data and server data with less code compared to using pure Redux.
Please see the links below for navigating to specific components of the App:
- Redux redcers:
I combined all reducers into one file because we have integrated react-apollo to replace Redux.
Combined Reducers - Sample GraphQL queries and mutations:
Sample Queries
Sample Mutations - Sample mock GraphQL data:
Below are some samples of the GraphQL mock we used before we integrated react-apollo.
GraphQL Mocks
Mock Data - Reusable components: https://github.com/ally1250/DriverApplication/tree/master/src/common
- Sample Views:
The following views include examples of using React with Redux and GraphQL client.
Home View
Profile View
Prepare for Delivery View
Login and Signup Views
Search Orders View