A real-time stock market dashboard application that allows users to track, analyze, and visualize stock prices with live updates.
- User Authentication (Register/Login)
- Real-time Stock Price Updates
- Stock Search Functionality
- Watchlist Management
- Price Alerts
- Historical Price Charts
- Responsive Design
- Dark Theme
- React.js
- Material-UI
- Chart.js
- Socket.io-client
- Axios
- Node.js
- Express.js
- MongoDB
- Socket.io
- JWT Authentication
- Finnhub API
- Node.js (v14 or higher)
- MongoDB (Make sure MongoDB service is running)
- Finnhub API Key (Get it from https://finnhub.io/)
-
Navigate to the backend directory:
cd backend -
Install dependencies:
npm install
-
Create a
.envfile in the backend directory with the following variables:PORT=5000 MONGODB_URI=mongodb://localhost:27017/stock-dashboard JWT_SECRET=your-secret-key-here FINNHUB_API_KEY=your-finnhub-api-key-here FRONTEND_URL=http://localhost:3000 -
Start the backend server:
npm run dev
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install
-
Create a
.envfile in the frontend directory with:REACT_APP_API_URL=http://localhost:5000 REACT_APP_FINNHUB_API_KEY=your-finnhub-api-key-here -
Start the frontend development server:
npm start
-
Open your browser and visit
http://localhost:3000
- Make sure to replace
your-finnhub-api-key-herein both.envfiles with your actual Finnhub API key - Ensure MongoDB is running before starting the backend server
- The backend server must be running for the frontend to work properly
MIT