Skip to content

Native application using React Native and YaaS e-commerce microservices to buy products from local farms.

License

Notifications You must be signed in to change notification settings

loic-d/local-groceries

Repository files navigation

Local Groceries: connect farmers and restaurant owners

This application is a POC developed for a presentation I gave on React Native and Hybris as a Service - YaaS at SAP d-kom (our annual internal developer conference). It allows restaurant owners to buy products from local farms. The primary goal was to show how easy and quick it is to build native applications using React Native for the front-end and YaaS micro-services for the back-end. Some features need to be added (My Account, My Orders, Edit Cart, etc.), but the complete checkout flow is working. React Native Starter App was used to speed up the development.

Installation

  • Create a YaaS account if you don't have one
  • Set-up a new project with a client and the following subscriptions: Product, Cart, Customer, Checkout, Site, Price, Order
  • Add products in Builder
  • Create a new user using the /{tenant}/signup endpoint of the Customer Service (using Postman for example)
  • Add user details, a billing and shipping address using the /{tenant}/me and /{tenant}/me/addresses endpoints of the Customer service
  • Clone the repo: git clone git@github.com:loic-d/local-groceries.git
  • Install the dependencies: npm install
  • Update local-groceries/src/constants/api.js with your TENANT and CLIENT_ID
  • Build and start for iOS: react-native run-ios

Features

  • Authentication
  • Browse products
  • Add products to cart
  • View my cart
  • Checkout

Screenshots

Landing Screen

Login Screen

Browse Products Screen

Checkout Screen

TODO

  • Add features (My Account, My Orders, Edit Cart, etc.)
  • Write components tests
  • Code cleaning

About

Native application using React Native and YaaS e-commerce microservices to buy products from local farms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published