Light Jet Inc Supply chain counter demonstrates counting and submitting the total number for each of the 5 Main Components of it's light body Aircraft at the end of the manufacturing line so that the procurement department knows when to re-stock.
To insure productivity the counter cannot go below 30 items for each component, this is when procurement knows when to restock its #aircraft parts. This Example uses react-native, flow for type checking and redux with axios GET and PUT request to a remote firebase URL.
Aircraft components: • Fuselage • Wings • Empennage • Power Plant • Landing Gear
yarn install or npm install
cd ios
pod install
npx react-native start
-
Each counters initial state is set to 30 and consists of a button to increase or decrease the amount, an integer showcasing the current amount and action buttons to increase or decrease the amount.
-
When the user presses add or minus the changes take place in real time on the firebase console
-
When the user submits the app sends a PUT request with the state of the counters, preserving it inside of the firebase realtime database
-
The app then loads the updated state back onto the view of the app.
-
Once the count reaches 30 the count is disabled and no integer is shown.