This project is a real-time stock viewer simulator built with React for the frontend and Express for the backend. It uses Socket.io to stream stock price updates dynamically, mimicking real-time stock market fluctuations.
- Real-Time WebSocket Communication via Socket.io
- Stock Market Simulation with fluctuating prices
- Search Functionality to find specific stock data
- React.js 18
- Chart.js (for real-time line graph)
- Express.js
- Socket.io
- Node.js
Make sure you have Node.js installed on your system.
git clone https://github.com/tbtiberiu/real-time-stock-app.git
cd real-time-stock-app
cd backend
npm install
cd frontend
npm install
node server.js
npm run dev
The application should now be running at http://localhost:5174
.
- The backend Express server generates and updates stock prices dynamically.
- Socket.io is used to push real-time stock data updates to the frontend.
- The frontend React app listens for these updates and dynamically updates the UI.
- Users can search for specific stocks to view their real-time data and historical trends.
I built this project to learn basic real-time data transfer and Socket.io.