Skip to content

vipin8797/Zerodha-Full-Stack_Public

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💹 Stock_Trading_App

A full-stack MERN web application simulating stock trading, inspired by Zerodha, with features like dashboard, holdings, buy/sell orders, and charts.

📑 Table of Contents

  1. Features
  2. Tech Stack
  3. Folder Structure
  4. Installation & Setup
  5. Usage
  6. API Endpoints
  7. Screenshots
  8. Future Enhancements
  9. Author

🚀 Features

  • Secure login/signup with JWT
  • Dashboard showing portfolio and market summary
  • Buy/Sell stocks with mock trading
  • Holdings, Orders, Positions, Funds sections
  • Real-time charts using Chart.js
  • Additional pages: About, Products, Pricing, Support

🧠 Tech Stack

Layer Technology
Frontend HTML, CSS, JS, Chart.js
Backend Node.js, Express.js
Database MongoDB
Auth JWT
API REST APIs for orders, holdings, positions

🗂️ Folder Structure

Stock_Trading_App/ ├── backend/ │ ├── models/ │ ├── routes/ │ ├── controllers/ │ ├── middleware/ │ └── server.js ├── frontend/ │ ├── index.html │ ├── css/ │ ├── js/ │ ├── charts/ │ └── pages/ ├── .gitignore ├── package.json ├── README.md └── .env.example

⚙️ Installation & Setup

  1. Clone the repo:
git clone https://github.com/vipinyadav/Stock_Trading_App.git
cd Stock_Trading_App


npm install



PORT=3000
MONGODB_URL=your_mongo_connection_string
JWT_SECRET=your_secret


npm start



#### **Usage**
```markdown
## 🖥️ Usage
- Teacher/Admin: log in → add stock data (if any admin feature)
- User: log in → view dashboard, buy/sell stocks, check holdings
- Track orders and positions in real time




## 🔌 API Endpoints
| Method | Endpoint         | Description                  |
|--------|-----------------|-----------------------------|
| POST   | /api/auth/login | Login existing user         |
| POST   | /api/auth/signup| Register new user           |
| GET    | /api/holdings   | Get user holdings           |
| POST   | /api/order      | Place buy/sell order        |
| GET    | /api/positions  | Get open positions          |



## 📸 Screenshots
| Dashboard | Holdings | Orders |
|-----------|---------|--------|
| ![Dashboard](screenshots/dashboard.png) | ![Holdings](screenshots/holdings.png) | ![Orders](screenshots/orders.png) |




## 🌟 Future Enhancements
- Real-time stock prices using WebSocket
- AI-powered trade suggestions
- Cloud deployment on Render or Vercel
- Advanced analytics dashboard



## 👨‍💻 Author
Vipin Yadav  
MERN Stack Developer  
[LinkedIn](https://linkedin.com/in/vipinyadav) | [GitHub](https://github.com/vipinyadav)

About

This is Zerodha ,A stock traing plateform.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors