How ankushmahajan/react-netbanking-app works
This React net-banking app lets a customer log in, view accounts and transaction details, and transfer money. Routing and authentication gates select the screens; page components dispatch Redux actions, which call the stub backend and update client state. The README identifies react-training-lib as the backend dependency. Some page and reducer behavior is represented from the source index and README rather than inspected excerpts, so uncertain wiring is omitted.
Main entry points: routes.js App routes · Accounts.js Accounts · Login.js Login · user_actions.js User actions
Components 16
Navigation and access
- App routes
src/routes.js - App shell
src/components/AppContainer.js - Auth gate
src/components/higherordercomponents/requireauthentication.js
Customer workflows
- Login
src/components/pages/Login.js - Accounts
src/components/pages/Accounts.js - Account details
src/components/pages/AccountDetails.js - Balance transfers
src/components/pages/BalanceTransfers.js - Form fields
src/components/common/renderformfields.js
Redux state
- Action types
src/actions/types.js - Root reducer
src/reducers/index.js - Authentication state
src/reducers/authentication_reducer.js - Accounts state
src/reducers/accounts_reducer.js
Backend services
- User actions
src/actions/user_actions.js - Account actions
src/actions/account_actions.js - Stub backend
Other components
- Customer
Connections 23
- Customer → App routes: opens screens
- App routes → App shell: renders shell
src/routes.js - App routes → Login: routes to
src/routes.js - App routes → Auth gate: protects routes
src/routes.js - App routes → Accounts: routes to
src/routes.js - App routes → Balance transfers: routes to
src/routes.js - Auth gate → Accounts: renders when logged in
- Auth gate → Authentication state: checks login state
src/components/higherordercomponents/requireauthentication.js - Login → User actions: dispatches login
src/components/pages/Login.js - Login → Form fields: renders fields
src/components/pages/Login.js - Login → Accounts: redirects after login
src/components/pages/Login.js - App shell → User actions: dispatches logout
src/components/AppContainer.js - Accounts → Account actions: loads account data
src/components/pages/Accounts.js - Accounts → Account details: renders details
src/components/pages/Accounts.js - Balance transfers → Account actions: submits transfer
src/components/pages/BalanceTransfers.js - User actions → Stub backend: calls auth API
src/actions/user_actions.js - Account actions → Stub backend: calls account API
src/actions/account_actions.js - User actions → Action types: uses action types
src/actions/user_actions.js - Account actions → Action types: uses action types
src/actions/account_actions.js - Root reducer → Authentication state: combines reducer
src/reducers/index.js - Root reducer → Accounts state: combines reducer
src/reducers/index.js - Authentication state → Action types: handles actions
src/reducers/authentication_reducer.js - Accounts state → Action types: handles actions
src/reducers/accounts_reducer.js