This is a ecommerce mobile application for iOS & Android, and a code challenge from a class in Rocketseat's Bootcamp. The challenge involves implementing flux architecture to a react native project from scratch. Read Description
Build a React Native project from scratch and implement flux architecture using Redux, Redux-Saga, and debug with Reactotron-react-native. Use Json Server as your API.
To run the application first install dependencies
yarn or npm install
This application uses Json Server so make sure to have that running
json-server --watch server.json
Your server should be up and running here
http://localhost:3000
Then run the application
react-native run-ios or react-native run-android
Products
-
GET /products
: This route displays an array of all products. -
GET /products/:id
: This route usesid
as a parameter and displays a single product.
Stock
-
GET /stock
: This route displays all the stock available from each product. -
GET /stock/:id
: This route usesid
as a parameter and this is where you see stock for a specific product.
Check out the react version of this challenge here.
This project is made available under the MIT LICENSE.