How yashinrush/stock-trading-platform works
This repository combines a public brokerage-information site, a simulated trading dashboard, and a small Express/MongoDB API. The user-facing path is navigation through the public site or dashboard; the dashboard presents watchlist and portfolio views and opens a buy-order window, while the API exposes holdings, positions, and order endpoints. README capabilities such as authentication, stock analysis, notifications, and responsive behavior are documented but not fully evidenced by sampled implementations, so those relationships are not inferred. The dashboard-to-API wiring is also not shown in the excerpts.
Main entry points: src/index.js Site Router · Home.js Dashboard Shell · backend/index.js Express API · WatchList.js Watchlist
Components 28
Public Site
- Site Router
frontend/src/index.js - Site Navigation
frontend/src/landing_page/Navbar.js - Home Overview
frontend/src/landing_page/home/HomePage.js - Company Profile
frontend/src/landing_page/about/AboutPage.js - Product Catalog
frontend/src/landing_page/products/ProductsPage.js - Pricing Details
frontend/src/landing_page/pricing/PricingPage.js - Support Topics
frontend/src/landing_page/support/SupportPage.js - Ticket Topics
frontend/src/landing_page/support/CreateTicket.js - Signup Screen
frontend/src/landing_page/signup/Signup.js - Site Footer
frontend/src/landing_page/Footer.js
Trading Dashboard
- Dashboard Router
dashboard/src/index.js - Dashboard Shell
dashboard/src/components/Home.js - Watchlist
dashboard/src/components/WatchList.js - Sample Market Data
dashboard/src/data/data.js - Buy Window Context
dashboard/src/components/GeneralContext.js - Buy Order Window
dashboard/src/components/BuyActionWindow.js - Holdings View
dashboard/src/components/Holdings.js - Positions View
dashboard/src/components/Positions.js - Orders View
dashboard/src/components/Orders.js - Funds View
dashboard/src/components/Funds.js - Portfolio Summary
dashboard/src/components/Summary.js
Trading API
- Express API
backend/index.js
Persistence
- Holdings Model
backend/model/HoldingsModel.js - Positions Model
backend/model/PositionsModel.js - Orders Model
backend/model/OrdersModel.js - MongoDB
Other components
- Visitor
- Trader
Connections 31
- Visitor → Site Router: opens site
frontend/src/index.js - Site Router → Site Navigation: renders
frontend/src/index.js - Site Router → Home Overview: routes to
frontend/src/index.js - Site Router → Signup Screen: routes to
frontend/src/index.js - Site Router → Company Profile: routes to
frontend/src/index.js - Site Router → Product Catalog: routes to
frontend/src/index.js - Site Router → Pricing Details: routes to
frontend/src/index.js - Site Router → Support Topics: routes to
frontend/src/index.js - Site Router → Site Footer: renders
frontend/src/index.js - Support Topics → Ticket Topics: renders
frontend/src/landing_page/support/SupportPage.js - Trader → Dashboard Router: opens dashboard
dashboard/src/index.js - Dashboard Router → Dashboard Shell: routes to
dashboard/src/index.js - Dashboard Shell → Watchlist: renders
dashboard/src/components/Home.js - Dashboard Shell → Holdings View: renders
- Dashboard Shell → Positions View: renders
- Dashboard Shell → Orders View: renders
- Dashboard Shell → Funds View: renders
- Dashboard Shell → Portfolio Summary: renders
- Watchlist → Sample Market Data: reads
dashboard/src/components/WatchList.js - Watchlist → Buy Window Context: opens buy window
dashboard/src/components/WatchList.js - Buy Window Context → Buy Order Window: renders
dashboard/src/components/GeneralContext.js - Holdings View → Sample Market Data: reads
dashboard/src/components/Holdings.js - Express API → Holdings Model: queries
backend/index.js - Express API → Positions Model: queries
backend/index.js - Express API → Orders Model: saves order
backend/index.js - Holdings Model → MongoDB: persists
- Positions Model → MongoDB: persists
- Orders Model → MongoDB: persists
- Holdings Model → MongoDB: defines schema
- Positions Model → MongoDB: defines schema
- Orders Model → MongoDB: defines schema