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.
- 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 yourTENANT
andCLIENT_ID
- Build and start for iOS:
react-native run-ios
- Authentication
- Browse products
- Add products to cart
- View my cart
- Checkout
- Add features (My Account, My Orders, Edit Cart, etc.)
- Write components tests
- Code cleaning