Photojaanic App Data Flow Diagram & Redux Structure
Photojaanic App Data Flow Diagram & Redux Structure
Link: https://boardmix.com/app/share/CAE.CNXlJiABKhCHMJVbTIuevE-
lHfBrpeSfMAZAAQ/SrxNvH
Redux Stuff:
1. Define State Structure: first will init the redux structure Like create 3 basic folder Action Reducer Store
Identify and define the shape of the state that will be managed by Redux
2.Create Action Types:Define the action types that describe the different actions that can be performed in
the application.Its unique identity of the action
For example :IS_LOGIN,USER_DETAILS
3.Action Creator: Write action creators that return action objects. These functions will be used to dispatch
actions to the Redux store.
Let take example of the is user login or not:
4.Reducers: Create reducers to handle the state changes based on the dispatched actions. The reducers should be
pure functions that return the new state.main use for the manage the data and update data in redux store
5. Middleware for Asynchronous Actions:we will use the thunk for handling asynchronous actions such as API calls.
For the local data store we are using the persist and asyncstorage so that we can load data easily from the cache.
6. Store Configuration: Configure the Redux store with reducers and middleware.for manage all data centrally from
the store and we can use anywhere in the app
7.Connecting the redux action and store with UI. like from component click and render time will use for data dispatch
and get data from the store via the selector.
-> Some of basic apis like categories will also store in reducers so we don't need to call every place we can take data
directly from the store easily.Our projects also we can store it on redux, so we can quickly show it the users and must
be able to review the orders
+-------------------+
| |
| User |
| |
+---------+---------+
|
|
v
+---------+---------+ +-------------------+
| | | |
| Manage Profile +----------> User Data Store |
| | | |
+---------+---------+ +---------+---------+
|
|
v
+---------+---------+ +-------------------+
| | | |
| Create Photobook +----------> Photo Data Store|
| | | |
+---------+---------+ +---------+---------+
|
|
v
+---------+---------+ +-------------------+
| | | |
| Edit Photos +----------> Order Data Store|
| | | |
+---------+---------+ +-------------------+
|
|
v
+---------+---------+
| |
| Order Prints |
| |
+---------+---------+
|
|
v
+---------+---------+
| |
| Create Calendar |
| |
+---------+---------+
|
|
v
+---------+---------+
| |
|Create Photo Magnets|
| |
+---------+---------+
|
|
v
+---------+---------+
| |
| Create Notebook |
| |
+---------+---------+
|
|
v
+---------+---------+
| |
|Create Decor Products|
| |
+---------+---------+
|
|
v
+---------+---------+
| |
| Manage Cart |
| |
+---------+---------+
|
|
v
+---------+---------+
| |
| User Support |
| |
+-------------------+