@alok_singh
update designation

Zerodha Clone A full-stack stock trading dashboard clone built with React and Node.js, replicating the core UI and functionality of the Zerodha trading platform. Project Structure zerodha-clone/ ├── backend/ # Node.js + Express REST API └── frontend/ # React trading dashboard Tech Stack Frontend React 18 React Router v6 Chart.js + react-chartjs-2 (bar & doughnut charts) MUI (Material UI) icons Axios Backend Node.js + Express 5 MongoDB + Mongoose dotenv, cors, body-parser Features Watchlist — live-style watchlist with buy/sell action buttons on hover Dashboard — equity summary with margin, holdings P&L overview Holdings — full holdings table with per-stock P&L and a bar chart Positions — open positions with P&L Orders — order history Funds — equity margin breakdown Buy/Sell window — order placement modal with BUY/SELL toggle and merge-holding option Getting Started Prerequisites Node.js v18+ A MongoDB connection string (MongoDB Atlas or local) 1. Clone the repo git clone git@github.com:aloksingh245/zerodha-clone.git cd zerodha-clone 2. Set up the backend cd backend npm install Create a .env file in backend/: MONGO_URL=your_mongodb_connection_string PORT=3002 Start the backend: npm start The API will run at http://localhost:3002. but now its on devlopment too 3. Set up the frontend cd frontend npm install npm start The dashboard will open at http://localhost:3000.// but now in versol devlopment Note: Authentication uses localStorage. A token is set after a successful /login or /signup call to the backend. You can also inject one manually via the browser console: localStorage.setItem("token", "any-value") API Endpoints Method Endpoint Description POST /signup Register a new user POST /login Login and get a token GET /allHoldings Fetch all holdings GET /allOrders Fetch all orders GET /addPositions Fetch all positions POST /newOrder Place a buy or sell order Environment Variables Variable Description Default MONGO_URL MongoDB connection string —
You've reached the end of the list