Web-app to view stock prices in real-time.
- The requirements of the project were of 20 stocks, but polygon limits requests to 5 per minute
- So, at max, 5 stocks can be monitored at once.
Clone the project
git clone https://github.com/yashdodani/stocks-app.git
Go to the project directory
cd stocks-app
Install dependencies
npm install
- Before starting server, make sure to add environment variables to .env file. Start the server
npm run start:client
npm run start:server
To run this project, you will need to add the following environment variables to your .env file from polygon
API_KEY
Client is hosted at (if port 5713 is not used)
http://localhost:5173
GET /api/stocks/:n
Parameter | Type | Description |
---|---|---|
n |
number |
Required. Number of stocks |