The frontend lives in nifty_fifty_bank_nifty_ReactJS/. It is a React 18 SPA built with Vite, Material UI (MUI), Redux Toolkit, and React Router v6. The app provides role-based dashboards for automated index trading (Nifty, Bank Nifty, and configured symbols), admin user/index management, and Zerodha order controls.

Tech stack

Application layers

Role-based entry

After login, users land on /dashboard:
  • Admin (role === "admin") → pages/dashboard/index.tsx — full tabbed dashboard with Financial tab, dynamic index tabs, schedule orders, and admin controls.
  • User (role !== "admin") → pages/dashboard/dashboardUser.tsx — simplified dashboard limited to pageAccess indices with manual buy/sell shortcuts.
Other routes (/users, /settings, /profile) are guarded by role or route wrappers in MainRoutes.tsx.

Key source paths