Algorithms Used - adarsh2858/personal-wallet-app GitHub Wiki
For integrating redux -
- Define a new folder inside the src directory.
- Add an actions file to keep the dispatching actions name coming up from the same place to avoid inconsistency.
- Define the two-state components.
- Manage them using the root reducer referring to the one implemented in the bid-vibes-site app.
For adding a new transaction -
- Add funds route use the user_id to search for the respective row in the personal wallet table.
- Increment the balance by the amount and store the same.
- Record the transaction - values at that time and after the update.
- Do not let the foreign key violate - Update the balance on personal_wallet table first.