Purpose
Repository layout
The workspace contains two separate git repositories side by side:NodeJS and ReactJS) is its own git repository with a separate remote.
Architecture
Plain-language flow:- User logs in → JWT stored in frontend → all API calls include
Authorization: Bearer …. - Admin connects Zerodha (manual login or 6 AM auto-login) → access token saved in MongoDB.
- Backend starts Kite WebSocket → live ticks flow in → Socket.io pushes updates to connected browsers.
- Recurring buy / scheduled sell loops run during market hours based on index settings.
- All live orders go through
handlePlaceOrderinzerodha.controller.ts.
Tech stack
Backend (nifty_fifty_bank_nifty_NodeJS)
Frontend (nifty_fifty_bank_nifty_ReactJS)
Explore the documentation
Quickstart
Set up MongoDB, run the backend and frontend locally, connect Zerodha, and configure your first index.
Dashboard Overview
Live index tabs, orders, positions, financials, and header controls for admins and users.
Backend Overview
API routes, database models, real-time events, and scheduled jobs.
Production Deployment
Deploy the platform on Ubuntu with PM2, Apache, and environment configuration.
For strategy details (recurring buy, trailing sell, settings fields), see the Trading Workflows section. For Zerodha token refresh and streaming, see Zerodha Operations.