How notsanta20/zenith-pay-app works
Zenith Pay is a React frontend for banking tasks, using a backend API gateway for authentication and account data. Users register or log in, then backend bootstrap state directs them through profile and account onboarding before entering the app to view balances, transfer funds, manage transactions, accounts, profile settings, and notifications. The sampled code confirms routing, registration, authentication bootstrap, and selected API calls; several feature implementations were not sampled, so their internal links are limited to documented capabilities.
Main entry points: Router.tsx Route dispatch · getRequests.ts API requests · postRequests.ts Write requests · AuthProvider.tsx Auth provider
Components 19
Entry and access
- Route dispatch
src/app/Router.tsx - Registration
src/components/custom/RegisterForm.tsx - Login
src/components/custom/LoginForm.tsx
Onboarding
- Onboarding state
src/context/AuthProvider.tsx - Create profile
src/app/routes/app/CreateProfile.tsx - Create account
src/app/routes/app/CreateAccount.tsx
Banking workspace
- Dashboard
src/app/routes/app/Dashboard.tsx - Fund transfer
src/components/custom/Transfer/Transact.tsx - Transactions
src/app/routes/app/Transactions.tsx - Accounts
src/app/routes/app/Accounts.tsx - Profile settings
src/app/routes/app/Profile.tsx - Notifications
src/app/routes/app/Notifications.tsx
API and state
- Auth provider
src/context/AuthProvider.tsx - Auth context
src/context/AuthContext.ts - API requests
src/apis/getRequests.ts - Write requests
src/apis/postRequests.ts - HTTP configuration
src/apis/apiConfig.ts
Other components
- User
- Backend gateway
Connections 31
- User → Route dispatch: navigates
src/app/Router.tsx - Route dispatch → Registration: routes to
src/app/Router.tsx - Route dispatch → Login: routes to
src/app/Router.tsx - Route dispatch → Create profile: routes to
src/app/Router.tsx - Route dispatch → Create account: routes to
src/app/Router.tsx - Route dispatch → Dashboard: routes to
src/app/Router.tsx - Route dispatch → Fund transfer: routes to
src/app/Router.tsx - Route dispatch → Transactions: routes to
src/app/Router.tsx - Route dispatch → Accounts: routes to
src/app/Router.tsx - Route dispatch → Profile settings: routes to
src/app/Router.tsx - Route dispatch → Notifications: routes to
src/app/Router.tsx - Registration → Write requests: submits via
src/components/custom/RegisterForm.tsx - Auth provider → API requests: verifies with
src/context/AuthProvider.tsx - Auth provider → API requests: loads bootstrap
src/context/AuthProvider.tsx - Auth provider → Auth context: provides state
src/context/AuthProvider.tsx - Auth provider → Onboarding state: derives stage
src/context/AuthProvider.tsx - Onboarding state → Create profile: directs to
README.md - Onboarding state → Create account: directs to
README.md - Onboarding state → Dashboard: directs to
README.md - Dashboard → API requests: loads balance
- Fund transfer → API requests: loads data
src/components/custom/Transfer/Transact.tsx - Fund transfer → Write requests: submits transfer
src/components/custom/Transfer/Transact.tsx - Profile settings → API requests: reads profile
- Profile settings → Write requests: updates profile
- API requests → HTTP configuration: uses client
src/apis/getRequests.ts - Write requests → HTTP configuration: uses client
src/apis/postRequests.ts - HTTP configuration → Backend gateway: sends requests
README.md - Transactions → API requests: loads transactions
- Accounts → API requests: loads accounts
- Notifications → API requests: loads inbox
- Profile settings → Write requests: changes preferences