How powerfilingadmin/powerfiling_prod works
Powerfiling is a web tax-filing platform: users discover filing services, authenticate, submit tax information, pay for a plan, and manage orders. The server exposes authentication, filing, document, plan, payment, coupon, and referral capabilities, with admin workflows for access and withdrawals. The graph preserves those product branches; unsampled implementations are represented by their existing directories. Edges reflect routes, calls, or relationships visible in the README and supplied source index/excerpts; uncertain client-to-server wiring is omitted.
Main entry points: AppRoutes.jsx Page routing · server.js Express application · paymentController.js Payment workflow · authController.js Authentication
Components 32
Web experience
- React app
client/src/App.jsx - Page routing
client/src/routes/AppRoutes.jsx - Public pages
client/src/pages/frontend - Tax calculators
client/src/pages/calculators - Tax blogs
client/src/pages/blog - Admin console
client/src/pages/admin
Filing services
- Service catalog
client/src/data/servicesData.js - Filing forms
client/src/pages/services - Filing and documents
server/controllers/itrController.js - Document records
server/models/Document.js
Payments and orders
- User dashboard
client/src/pages/dashboard/UserDashboard.jsx - Order details
client/src/pages/dashboard/OrderDetails.jsx - Checkout
client/src/pages/payment - Plan catalog API
server/controllers/planController.js - Payment workflow
server/controllers/paymentController.js - Payment pricing
server/utils/paymentPricing.js - Purchase fulfillment
server/utils/fulfillPurchase.js - Purchases
server/models/Purchase.js - Cashfree gateway
server/services/cashfreeService.js
Identity and referrals
- Sign-in flows
client/src/components/auth - Auth state
client/src/context/AuthContext.jsx - Referral dashboard
client/src/pages/ReferralDashboard/ReferralDashboard.jsx - Auth endpoints
server/routes/authRoutes.js - Authentication
server/controllers/authController.js - User records
server/models/User.js - Referral rewards
server/controllers/referralController.js
Server capabilities
- HTTP client
client/src/api/axios.js - Express application
server/server.js - Admin operations
server/controllers - Email delivery
server/utils/sendEmail.js
Other components
- User
- Email provider
Connections 32
- User → React app: uses
README.md - React app → Page routing: renders
client/src/App.jsx - Page routing → Public pages: routes to
client/src/routes/AppRoutes.jsx - Page routing → Tax calculators: routes to
client/src/routes/AppRoutes.jsx - Page routing → Tax blogs: routes to
client/src/routes/AppRoutes.jsx - Page routing → Filing forms: routes to
client/src/routes/AppRoutes.jsx - Filing forms → Service catalog: reads catalog
client/src/pages/services/ServiceDetail.jsx - Page routing → Sign-in flows: routes to
client/src/routes/AppRoutes.jsx - React app → Auth state: provides auth
client/src/App.jsx - Auth state → HTTP client: uses
client/src/context/AuthContext.jsx - Page routing → User dashboard: routes to
client/src/routes/AppRoutes.jsx - Page routing → Order details: routes to
client/src/routes/AppRoutes.jsx - Page routing → Checkout: routes to
client/src/routes/AppRoutes.jsx - Page routing → Referral dashboard: routes to
client/src/routes/AppRoutes.jsx - Page routing → Admin console: routes to
client/src/routes/AppRoutes.jsx - Express application → Auth endpoints: mounts routes
server/server.js - Express application → Admin operations: mounts routes
server/server.js - Auth endpoints → Authentication: dispatches
server/routes/authRoutes.js - Authentication → User records: reads and writes
server/controllers/authController.js - Authentication → Email delivery: sends verification
server/controllers/authController.js - Authentication → Email provider: delivers mail
- Referral rewards → User records: updates rewards
server/controllers/referralController.js - Referral rewards → Email delivery: sends notices
server/controllers/referralController.js - Express application → Filing and documents: mounts routes
server/server.js - Filing and documents → Document records: uses documents
server/controllers/itrController.js - Express application → Plan catalog API: mounts routes
server/server.js - Express application → Payment workflow: mounts routes
server/server.js - Payment workflow → Payment pricing: calculates price
server/controllers/paymentController.js - Payment workflow → Cashfree gateway: creates orders
server/controllers/paymentController.js - Payment workflow → Purchase fulfillment: fulfills payment
server/controllers/paymentController.js - Purchase fulfillment → Purchases: records purchase
server/utils/fulfillPurchase.js - Payment workflow → Purchases: reads purchases
server/controllers/paymentController.js