Algorithms Used - adarsh2858/personal-wallet-app GitHub Wiki

For integrating redux -

  1. Define a new folder inside the src directory.
  2. Add an actions file to keep the dispatching actions name coming up from the same place to avoid inconsistency.
  3. Define the two-state components.
  4. Manage them using the root reducer referring to the one implemented in the bid-vibes-site app.

For adding a new transaction -

  1. Add funds route use the user_id to search for the respective row in the personal wallet table.
  2. Increment the balance by the amount and store the same.
  3. Record the transaction - values at that time and after the update.
  4. Do not let the foreign key violate - Update the balance on personal_wallet table first.