Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📈 Stock Trading Web App

A full-stack stock trading platform where users can sign up, manage their portfolios, buy/sell stocks, and view order history. The UI is inspired by Bloomberg, featuring dark mode and a sleek financial dashboard look.

🔥 Features

  • 🧾 User Authentication – Sign up, log in, and role-based account creation.
  • 💼 Stock Trading – Buy and sell stocks with real-time updates to your balance and holdings.
  • 📊 Portfolio Management – Track your owned stocks and order history.
  • 📰 News Section – Live market-related news to stay informed.
  • 📂 Order History – Organized display of intraday and delivery orders.
  • 💡 Responsive Design – Optimized for various screen sizes.
  • 🎨 Dark Mode UI – Financial dashboard vibe with stylish component layouts.

🛠️ Tech Stack

Frontend:

  • React.js
  • Axios
  • React Icons
  • CSS (custom styling, inspired by Bloomberg UI)

Backend:

  • Node.js
  • Express.js
  • MongoDB (with Mongoose ODM)

📁 Folder Structure

Stocks-Trading-MERN
│
├── README.md
│
├── client
│   ├── README.md
│   ├── package.json
│   ├── public
│   │   ├── favicon.ico
│   │   ├── index.html
│   │   ├── logo192.png
│   │   ├── logo512.png
│   │   ├── manifest.json
│   │   └── robots.txt
│   └── src
│       ├── App.css
│       ├── App.js
│       ├── App.test.js
│       ├── index.css
│       ├── index.js
│       ├── reportWebVitals.js
│       ├── setupTests.js
│       ├── assets
│       │   ├── about1.jpg
│       │   ├── about2.jpg
│       │   └── home-hero-img.png
│       ├── components
│       │   ├── Login.jsx
│       │   ├── Navbar.jsx
│       │   └── Register.jsx
│       ├── context
│       │   └── GeneralContext.jsx
│       ├── pages
│       │   ├── Admin.jsx
│       │   ├── AdminStockChart.jsx
│       │   ├── AllOrders.jsx
│       │   ├── AllTransactions.jsx
│       │   ├── History.jsx
│       │   ├── Home.jsx
│       │   ├── Landing.jsx
│       │   ├── News.jsx
│       │   ├── Portfolio.jsx
│       │   ├── Profile.jsx
│       │   ├── StockChart.jsx
│       │   └── Users.jsx
│       ├── RouteProtectors
│       │   ├── AuthProtector.jsx
│       │   └── LoginProtector.jsx
│       └── styles
│           ├── Admin.css
│           ├── AdminStockChart.css
│           ├── AllOrders.css
│           ├── AllTransactions.css
│           ├── History.css
│           ├── Home.css
│           ├── Landing.css
│           ├── Navbar.css
│           ├── news.css
│           ├── Portfolio.css
│           ├── Profile.css
│           ├── StockChart.css
│           └── Users.css
│
└── server
    ├── index.js
    ├── package.json
    └── Schema.js```

## 💻 Getting Started

### 1. Clone the repository

```bash
git clone https://github.com/Aditi16-ctrl/Stocks-Trading-MERN
.git
cd stock-trading-app

2. Install dependencies

Backend

cd server
npm install

Frontend

cd client
npm install

3. Run the app

Backend

node index.js

Frontend

npm start

Ensure MongoDB is running on your machine or configured in the .env file.

🧪 API Endpoints

  • POST /register
  • POST /login
  • GET /stocks
  • POST /buy
  • POST /sell
  • GET /fetch-orders

🧑‍🎨 Styling

Custom CSS modules are used for modularity and clarity. Key style highlights:

  • Dark Mode for history and trading screens
  • Glassmorphism and gradients for the landing page
  • Scroll hiding, card hovers, and adaptive flex layouts
  • Section-wise Styling:
    • .landingPage: Full-height responsive landing
    • .trending-stocks-container: News-style card layout
    • .user-history-stock: Order card display with hover animations

📸 Screenshots

Screenshot 2025-04-13 215500 Screenshot 2025-04-13 215335 Screenshot 2025-04-13 215148 Screenshot 2025-04-13 215045 Screenshot 2025-04-13 214923

🙌 Acknowledgements

📃 License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages