The Stock Market Website is a web application designed to provide users with real-time stock market data. It offers features such as fetching stock prices, searching for specific stocks, and displaying detailed stock information.
The Stock Market Website repository is accessible at https://github.com/yourusername/Stock-Market-Website.git.
The Stock Market Website is built using the following technologies:
- NodeJS: A JavaScript runtime for building server-side applications.
- Express: A fast, unopinionated, and minimalist web framework for Node.js.
- Vue: A progressive JavaScript framework for building user interfaces.
- The backend code is located in the
backend
branch of the repository. - Mock data for companies, including high, low, close, and volume information, is stored in JSON format.
-
Navigate to the backend directory:
cd backend
-
Install dependencies:
npm install
-
Start the server:
node app.js
- The backend is deployed on render.com.
- The frontend code is located in the
frontend
branch of the repository.
-
Clone the repository:
git clone https://github.com/yourusername/Stock-Market-Website.git
-
Navigate to the frontend directory:
cd frontend
-
Install dependencies:
npm install
-
Run the frontend server:
npm run serve
- The frontend is deployed on Netlify.
URL: https://stock-data-a9sg.onrender.com/api/stocks
This endpoint returns a list of all available stocks along with their high, low, close, and volume information.
URL: https://stock-data-a9sg.onrender.com/api/search?symbol=symbol&period=1D
This endpoint allows users to search for a specific stock by its symbol and retrieve its data for a specified period (e.g., 1D for one day).
Example:
https://stock-data-a9sg.onrender.com/api/search?symbol=AAPL&period=1D
Feel free to reach out if you have any questions or need further clarifications!