MarketFlow is a real-time trade price dashboard that visualizes stock trade prices using a React frontend, Node.js backend with Express, WebSocket integration with Finnhub API, and Fluvio for data streaming.
Screen.Recording.2024-08-22.at.7.32.46.PM.mov
client/
- Contains the React frontend application.server/
- Contains the Node.js backend application.deploy.sh
- Script to set up Fluvio locally with the topicmessage
.
- Real-time stock trade price updates.
- Interactive dashboard for monitoring stock prices.
- Utilizes Fluvio for scalable and efficient data streaming.
- WebSocket integration with Finnhub API for real-time trade data.
- Node.js (v14 or later)
- Yarn (for package management)
- Fluvio (for data streaming)
- Finnhub API account for WebSocket API
git clone https://github.com/Thund3rHawk/MarketFlow.git
cd MarketFlow
Navigate to the server
directory and install dependencies using Yarn:
cd server
yarn install
Navigate to the client
directory and install dependencies using Yarn:
cd ../client
yarn install
Make sure Fluvio is installed and running locally. Use the provided deploy.sh
script to set up Fluvio with the required topic:
cd ..
chmod +x deploy.sh
./deploy.sh
You need to configure the Finnhub API key in your backend environment. Create a .env
file in the server
directory with the following content:
PORT = 8080
FINNHUB_API_KEY=your_finnhub_api_key
Replace your_finnhub_api_key
with your actual API key from Finnhub.
Navigate to the server
directory and start the server:
cd server
yarn dev
Navigate to the client
directory and start the client:
cd ../client
yarn dev
Open your web browser and go to http://localhost:5173
to access the real-time trade price dashboard.