Components
Components
App
Location: The UI can be found under
src/App.jsWorking: 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.jsIts mutation can be found undersrc/apollo/server.jswith constantcreateUserWorking: 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.jsIts mutation can be found undersrc/apollo/server.jswith constantloginWorking: Logins User using Google or Manual Registration. A separate component for ForgotPassword is also present its component can be found
src/components/SignIn/ForgotPasswordIts mutation can be found undersrc/apollo/server.jswith constantforgotPasswordResult: 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.jsIts query can be found undersrc/apollo/server.jswith constantcategories&productsResult: Fetches categories and products
ProductListing
Location: The UI can be found under
src/screens/ProductListing/ProductListing.jsIts mutations and queries can be found undersrc/apollo/server.jswith constantfoodsandsrc/apollo/client.jswith constantscategoryProductWorking: Constants
categoryProductis a query which return all the product in specific category.Result:
productis queried with the selected category in the previous screen.
ProductDescription
Location: The UI can be found under
src/screens/ProductDescription/ProductDescription.jsIts mutations and queries can be found undersrc/apollo/server.jswith constantproductReviewsandsrc/apollo/server.jswith constant andproductWorking: Constants
productReviewsandproductreturn the product details including reviews, attributes, description and availability in stock.
ShoppingCart
Location: The UI can be found under
src/screens/ShoppingCart/ShoppingCart.jsIt has Apollo constants ofproductByIdlocated atsrc/apollo/server.jsWorking: Constant
profileis a type of query that gets user details and login details.Result: The
profileis used to get the user login status and details.
Payment
Location: The UI can be found under
src/screens/Payment/Payment.jsIt has Apollo constantsplaceOrderlocated atsrc/apollo/server.jsIts a mutation.Working: Constant
placeOrdersend 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.jsIt has Apollo constant ofmyOrderslocated atsrc/apollo/server.jsits 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.jsIt has Apollo constant ofreviewOrderits 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.jsIt has Apollo constants ofupdateUser,profileandgetProfile. ConstantsupdateUserandprofileare located insrc/apollo/server.jsWorking:
updateUseris of type mutation where the user information is updated.profileis 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.jsIt has Apollo constants ofprofileits of type query located insrc/apollo/client.jsResults:
profile.addressesgets all the address that the user added in addresses list.
OrderDetail
Location: The UI can be found under
src/screens/OrderDetail/OrderDetail.jsIt has Apollo constants ofmyOrder.Working:
myOrdershas 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?