{"id":23070796,"url":"https://github.com/P8Labs/stock-charts","last_synced_at":"2025-08-15T13:33:16.505Z","repository":{"id":255460027,"uuid":"843820386","full_name":"P8Labs/stock-charts","owner":"P8Labs","description":"A stocks chart system powered by fluvio.","archived":false,"fork":false,"pushed_at":"2024-09-10T13:47:06.000Z","size":645,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-11T10:50:32.037Z","etag":null,"topics":["collaborate","fluvio","github","nextjs","real-time","stock-prices","stocks-charts"],"latest_commit_sha":null,"homepage":"https://stockviz.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/P8Labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2024-08-17T14:18:13.000Z","updated_at":"2025-07-02T01:05:09.000Z","dependencies_parsed_at":"2024-09-10T14:49:01.611Z","dependency_job_id":null,"html_url":"https://github.com/P8Labs/stock-charts","commit_stats":null,"previous_names":["priyanshuverma-dev/stock-charts","keptcodes/stock-charts","diybuilds/stock-charts","p8labs/stock-charts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/P8Labs/stock-charts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P8Labs%2Fstock-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P8Labs%2Fstock-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P8Labs%2Fstock-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P8Labs%2Fstock-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/P8Labs","download_url":"https://codeload.github.com/P8Labs/stock-charts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P8Labs%2Fstock-charts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270578391,"owners_count":24610036,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["collaborate","fluvio","github","nextjs","real-time","stock-prices","stocks-charts"],"created_at":"2024-12-16T06:27:47.955Z","updated_at":"2025-08-15T13:33:16.486Z","avatar_url":"https://github.com/P8Labs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StockViz\n\n## Realtime - Stock Charts with Fluvio\n\nThis repository contains a complete system for fetching and visualizing real-time stock market data. It includes:\n\n1. **Server**: A backend service for fetching stock prices.\n2. **Client**: A web application for displaying stock price charts.\n3. **Fluvio**: Configuration files for Fluvio cloud deployment.\n\n## Demo\n\n[Live Preview](https://stockviz.vercel.app/)\n\n[Vote on Quira ✅️](https://quira.sh/repo/priyanshuverma-dev-stock-charts-843820386?utm_source=copy\u0026utm_share_context=quests_creators)\n\n[Youtube link](https://www.youtube.com/watch?v=pHJBXAq21iw)\n\n[demo](https://github.com/user-attachments/assets/eaad9473-e23a-41b2-96d4-9ff6f2b2d816)\n\n\n## Overview\n\n- **Server**: Provides a REST API to get current stock prices and a streaming endpoint for real-time updates. (uses [Fluvio](https://www.fluvio.io/))\n- **Client**: A React-based application that visualizes stock prices using Recharts and Tailwind CSS.\n- **Fluvio**: YAML configuration files used to define the sources to sync data and Docker files. (for [Fluvio](https://www.fluvio.io/))\n\n## Setup Instructions\n\n#### Server\n\n1. **Navigate to the Server Directory**\n\n   ```bash\n   cd server\n   ```\n\n2. **Install Dependencies**\n\n   ```bash\n   bun install\n   ```\n\n3. **Run the Server**\n\n   ```bash\n   bun dev\n   ```\n\n   The server will be available at `http://localhost:5000`.\n\n#### Client\n\n1. **Navigate to the Client Directory**\n\n   ```bash\n   cd client\n   ```\n\n2. **Create a `.env` File**\n\n   In the `client` directory of the project, create a file named .env with the following content:\n\n   ```env\n   AUTH_SECRET=\"changeMe\"\n   AUTH_GITHUB_ID=\"\u003cgithub-id\u003e\"\n   AUTH_GITHUB_SECRET=\"\u003cgithub-secret\u003e\"\n   NEXT_PUBLIC_SERVER_URL=\"http://localhost:8000\"\n   NEXT_PUBLIC_URL=\"http://localhost:3000\"\n   DATABASE_URL=\"\u003cmongodb\u003e\"\n   ```\n\n3. **Install Dependencies**\n\n   ```bash\n   bun install\n   ```\n\n4. **Generate Prisma Schema**\n\n   ```bash\n   npx prisma db push\n   ```\n\n5. **Run the Development Server**\n\n   ```bash\n   bun dev\n   ```\n\n   The client application will be available at `http://localhost:3000`.\n\n#### Fluvio\n\n1. **Navigate to the Fluvio Directory**\n\n   ```bash\n   cd fluvio\n   ```\n\n2. **Install Required Fluvio Package**\n\n   ```bash\n   cdk hub download infinyon/http-source@0.3.8\n   ```\n\n3. **Create a Topic**\n\n   ```bash\n   fluvio topic create stocks-sinker\n   ```\n\n4. **Deploy Sinker**\n\n   ```bash\n   cdk deploy start --ipkg ./infinyon-http-source-0.3.8.ipkg -c ./sinker.yml\n   ```\n\n### Widget Scripts\n\nTo see widget open `widget/index.html` in root and change its `div` id with locally created id and\nopen in browser.\n\nYou will find widget scripts in `widget/dist/` to add to your website.\nYou need to build widget again after any change in `widget` folder by:\n\n```bash\nbun run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FP8Labs%2Fstock-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FP8Labs%2Fstock-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FP8Labs%2Fstock-charts/lists"}