How hazim47/digital-wallet-system works
Wallet App provides account registration and sign-in, a dashboard, and transfers between users. The principal flow is a user entering signup or sign-in details, the frontend calling the API, and the API creating or authenticating an account; signed-in users can initiate transfers to other users. The README also documents dashboard access and automatic login. Backend route details for accounts and frontend dashboard/sign-in behavior were not sampled, so those capabilities are shown without speculative call wiring.
Main entry points: App.jsx Page router · user.js User endpoints · index.js API router · account.js Account endpoints
Components 13
Wallet interface
- Page router
Frontend/src/App.jsx - Sign up
Frontend/src/Pages/Signup.jsx - Sign in
Frontend/src/Pages/Signin.jsx - Dashboard
Frontend/src/Pages/Dashboard.jsx - Send money
Frontend/src/Pages/SendMoney.jsx
HTTP API
- API server
Backend/index.js - API router
Backend/routes/index.js - User endpoints
Backend/routes/user.js - Account endpoints
Backend/routes/account.js - Token middleware
Backend/middleware.js
Wallet data
- User and account models
Backend/db.js
Other components
- User
- MongoDB
Connections 14
- User → Page router: uses
- Page router → Sign up: routes to
- Page router → Sign in: routes to
- Page router → Dashboard: routes to
- Page router → Send money: routes to
- Sign up → User endpoints: posts signup
- Send money → Account endpoints: posts transfer
- API server → API router: mounts
- API router → User endpoints: mounts
- API router → Account endpoints: mounts
- User endpoints → Token middleware: protects routes
- User endpoints → User and account models: queries
- API server → MongoDB: connects
- Account endpoints → MongoDB: records transfers