How wajih1234/paycom works
Paycom is a bill-payment application with a React client and an Express/MongoDB backend. Users sign up or log in, view bills, pay them, and review payment history; administrators have bill and user-management screens. The backend also supports password recovery and account updates. The graph includes documented routes and sampled controller/model interactions. Client-to-API calls and some unsampled route details are not shown in the available evidence, so those connections are omitted.
Main entry points: App.js Page router · index.js Route registry · auth.js Auth routes · bill.js Bill operations
Components 28
Web client
- Page router
front/src/App.js - Home and auth
front/src/pages/Home.jsx - User dashboard
front/src/pages/userdashbaord.jsx - Admin dashboard
front/src/pages/Dashboard.jsx - Add bill
front/src/pages/addbill.jsx - Pay bill
front/src/pages/paybill.jsx - Payment history
front/src/pages/PaymentHistoryChart.jsx - Charts
front/src/pages/Chart.jsx - Profile
front/src/pages/profil.jsx - Settings
front/src/pages/Settings.jsx
Backend API
- HTTP server
back/server.js - Route registry
back/routes/index.js - Auth routes
back/routes/auth.js - Bill routes
back/routes/bills.js - Transaction routes
back/routes/transactions.js - Authentication
back/controllers/auth.js - Bill operations
back/controllers/bill.js - User operations
back/controllers/user.js - Transaction queries
back/controllers/transaction.js - JWT authorization
back/middleware/auth.js
Persistence
- MongoDB
- DB connection
back/config/db.js - User records
back/models/User.js - Bill records
back/models/Bill.js - Transaction records
back/models/Transaction.js
External services
- Reset email service
back/controllers/emailService.js
Other components
- User
- Administrator
Connections 32
- User → Page router: uses
- Administrator → Page router: uses
- Page router → Home and auth: routes to
front/src/App.js - Page router → User dashboard: routes to
front/src/App.js - Page router → Admin dashboard: routes to
front/src/App.js - Page router → Add bill: routes to
front/src/App.js - Page router → Pay bill: routes to
front/src/App.js - Page router → Charts: routes to
front/src/App.js - Page router → Profile: routes to
front/src/App.js - Page router → Settings: routes to
front/src/App.js - Admin dashboard → Payment history: renders
front/src/pages/Dashboard.jsx - Charts → Payment history: uses
front/src/pages/Chart.jsx - HTTP server → DB connection: connects
back/server.js - HTTP server → Route registry: mounts
back/server.js - Route registry → Auth routes: registers
back/routes/index.js - Route registry → Bill routes: registers
back/routes/index.js - Route registry → Transaction routes: registers
back/routes/index.js - Auth routes → Authentication: dispatches
back/routes/auth.js - Auth routes → User operations: dispatches
back/routes/auth.js - Auth routes → JWT authorization: protects
back/routes/auth.js - Bill routes → Bill operations: dispatches
back/routes/bills.js - Bill routes → JWT authorization: protects
back/routes/bills.js - Transaction routes → Transaction queries: dispatches
back/routes/transactions.js - Transaction routes → JWT authorization: protects
back/routes/transactions.js - Authentication → User records: reads and writes
back/controllers/auth.js - Authentication → Reset email service: sends reset email
back/controllers/auth.js - Bill operations → User records: reads and writes
back/controllers/bill.js - Bill operations → Bill records: reads and writes
back/controllers/bill.js - Bill operations → Transaction records: creates
back/controllers/bill.js - User operations → User records: reads and writes
back/controllers/user.js - Transaction queries → Transaction records: queries
back/controllers/transaction.js - DB connection → MongoDB: connects