Components
Components
App
Location: The UI can be found under
src/App.js
Working: Configures Fonts, Push Notification, Apollo, Authentication and Navigation.
Result: Everything is configured loads the next view depending on if the user is authenticated or not. If the user is not authenticated will show tutorial screen first else it will show Menu Screen.
SignUp
Location: The UI can be found under
src/screens/SignUp/SignUp.js
Its mutation can be found undersrc/apollo/server.js
with constantcreateUser
Working: Registers User using Google or Manual Registration
Result: An auth token is generated with other information (name, phone ,email) on backend and sent backend to frontend.
SignIn
Location: The UI can be found under
src/screens/SignIn/SignIn.js
Its mutation can be found undersrc/apollo/server.js
with constantlogin
Working: Logins User using Google or Manual Registration. A separate component for ForgotPassword is also present its component can be found
src/components/SignIn/ForgotPassword
Its mutation can be found undersrc/apollo/server.js
with constantforgotPassword
Result: Logins User with validation. If a user uses forgotPassword an email will be sent to him with reset link for changing his/her password.
MainLanding
Location: The UI can be found under
src/screens/MainLanding/MainLanding.js
Its query can be found undersrc/apollo/server.js
with constantcategories
&products
Result: Fetches categories and products
ProductListing
Location: The UI can be found under
src/screens/ProductListing/ProductListing.js
Its mutations and queries can be found undersrc/apollo/server.js
with constantfoods
andsrc/apollo/client.js
with constantscategoryProduct
Working: Constants
categoryProduct
is a query which return all the product in specific category.Result:
product
is queried with the selected category in the previous screen.
ProductDescription
Location: The UI can be found under
src/screens/ProductDescription/ProductDescription.js
Its mutations and queries can be found undersrc/apollo/server.js
with constantproductReviews
andsrc/apollo/server.js
with constant andproduct
Working: Constants
productReviews
andproduct
return the product details including reviews, attributes, description and availability in stock.
ShoppingCart
Location: The UI can be found under
src/screens/ShoppingCart/ShoppingCart.js
It has Apollo constants ofproductById
located atsrc/apollo/server.js
Working: Constant
profile
is a type of query that gets user details and login details.Result: The
profile
is used to get the user login status and details.
Payment
Location: The UI can be found under
src/screens/Payment/Payment.js
It has Apollo constantsplaceOrder
located atsrc/apollo/server.js
Its a mutation.Working: Constant
placeOrder
send the details to the server with item delivery address payment status and user profile.Result: User payment is made by selecting either Paypal or Stripe. If the selected option is Cash on delivery payment is not made and the status of the payment is still pending. Its status is changed from the admin panel. An email is also sent to the user with the order detail information.
PreviousOrders
Location: The UI can be found under
src/screens/PreviousOrders/PreviousOrders.js
It has Apollo constant ofmyOrders
located atsrc/apollo/server.js
its of type queryResult: All the users orders are queried with an option to reorder it for the user.
Review
Location: The UI can be found under
src/screens/Review/Review.js
It has Apollo constant ofreviewOrder
its of type mutationResult: The user can give ratings with stars for his order made.
Profile
Location: The UI can be found under
src/screens/EditingProfile/EditingProfile.js
It has Apollo constants ofupdateUser
,profile
andgetProfile
. ConstantsupdateUser
andprofile
are located insrc/apollo/server.js
Working:
updateUser
is of type mutation where the user information is updated.profile
is of type query where the user profile is queried.Result: User profile is updated. All the fields in settings are required to place order.
Addresses
Location: The UI can be found under
src/screens/AddressList/AddressList.js
It has Apollo constants ofprofile
its of type query located insrc/apollo/client.js
Results:
profile.addresses
gets all the address that the user added in addresses list.
OrderDetail
Location: The UI can be found under
src/screens/OrderDetail/OrderDetail.js
It has Apollo constants ofmyOrder.
Working:
myOrders
has all the details for item as well as the status of the order based on the status the timeline is rendered dynamically
Last updated
Was this helpful?