{"id":25257801,"url":"https://github.com/imoamo/-dynamically-updating-stock-graphs","last_synced_at":"2025-04-06T01:13:59.265Z","repository":{"id":276097497,"uuid":"928200569","full_name":"imoamo/-dynamically-updating-stock-graphs","owner":"imoamo","description":"Build a responsive single-page frontend which shows dynamically updating stock graphs ","archived":false,"fork":false,"pushed_at":"2025-02-06T08:38:33.000Z","size":359,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T09:34:01.219Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imoamo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-06T08:30:34.000Z","updated_at":"2025-02-06T08:39:12.000Z","dependencies_parsed_at":"2025-02-06T09:34:16.228Z","dependency_job_id":"34b7a56b-fd8b-4752-818d-afab19a93bfa","html_url":"https://github.com/imoamo/-dynamically-updating-stock-graphs","commit_stats":null,"previous_names":["imoamo/-dynamically-updating-stock-graphs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imoamo%2F-dynamically-updating-stock-graphs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imoamo%2F-dynamically-updating-stock-graphs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imoamo%2F-dynamically-updating-stock-graphs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imoamo%2F-dynamically-updating-stock-graphs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imoamo","download_url":"https://codeload.github.com/imoamo/-dynamically-updating-stock-graphs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419870,"owners_count":20936013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-12T06:50:34.653Z","updated_at":"2025-04-06T01:13:59.246Z","avatar_url":"https://github.com/imoamo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Dynamically Updating Stock Graphs\n\nThis project is a single-page frontend application that dynamically displays stock graphs by fetching real-time stock data using a backend API. The stock graph updates in real-time as more data is processed on the server.\n\n## Project SS\n\n![Screenshot (80)](https://github.com/user-attachments/assets/55932807-36c5-41c7-8aee-126d6cf86e65)\n\n\n## Overview\n\nThe app provides:\n- A dropdown menu to select a stock.\n- A dropdown menu to select the duration of the stock data (e.g., 1 day, 1 week, etc.).\n- A dynamically updating graph displaying stock prices based on the selected stock and duration.\n\nThe backend simulates real-time stock data updates, where the data is fetched in multiple stages.\n\n## Tech Stack\n\n- **Frontend**: React, Axios, Recharts (for stock graphs), Material UI (for styling)\n- **Backend**: Node.js, Express.js\n- **API**: Custom APIs for fetching stock data.\n\n## Frontend Setup\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/imoamo/-dynamically-updating-stock-graphs.git\n   cd dynamically-updating-stock-graphs/frontend\n   ```\n\n2. Install the required dependencies:\n   ```bash\n   yarn install\n   ```\n\n3. Start the frontend application:\n   ```bash\n   yarn start\n   ```\n\n   The frontend should be running at `http://localhost:3001`.\n\n## Backend Setup\n\n1. Navigate to the `backend` directory:\n   ```bash\n   cd backend\n   ```\n\n2. Install the required dependencies:\n   ```bash\n   yarn install\n   ```\n\n3. Start the backend server:\n   ```bash\n   yarn start\n   ```\n\n   The backend should be running at `http://localhost:3000`.\n\n## Running the Application\n\nOnce both the frontend and backend are running, the app will be available at `http://localhost:3001`.\n\n### Features:\n- Select a stock from the dropdown.\n- Choose a duration for the selected stock.\n- View the dynamically updating graph for the selected stock and duration.\n\n\n## Components\n\n### 1. **StockSelector**\nA dropdown component that allows users to select a stock. It fetches the list of available stocks from the backend API.\n\n### 2. **DurationSelector**\nA dropdown component that allows users to select a duration for the selected stock (e.g., 1 day, 1 week, etc.).\n\n### 3. **StockGraph**\nA component that dynamically fetches and displays the stock data for the selected stock and duration. It updates the graph in real-time as more data is fetched from the backend.\n\n### 4. **App**\nThe main component that brings everything together. It includes the `StockSelector`, `DurationSelector`, and `StockGraph` components.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimoamo%2F-dynamically-updating-stock-graphs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimoamo%2F-dynamically-updating-stock-graphs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimoamo%2F-dynamically-updating-stock-graphs/lists"}