{"id":23396461,"url":"https://github.com/mneedham/real-time-analytics-book","last_synced_at":"2025-04-11T14:42:30.931Z","repository":{"id":58949091,"uuid":"525406508","full_name":"mneedham/real-time-analytics-book","owner":"mneedham","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-03T07:00:00.000Z","size":2912,"stargazers_count":37,"open_issues_count":2,"forks_count":17,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-25T10:51:11.461Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/mneedham.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}},"created_at":"2022-08-16T14:05:43.000Z","updated_at":"2025-02-21T22:36:35.000Z","dependencies_parsed_at":"2023-02-16T18:46:23.461Z","dependency_job_id":null,"html_url":"https://github.com/mneedham/real-time-analytics-book","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Freal-time-analytics-book","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Freal-time-analytics-book/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Freal-time-analytics-book/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Freal-time-analytics-book/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mneedham","download_url":"https://codeload.github.com/mneedham/real-time-analytics-book/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248420258,"owners_count":21100348,"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":"2024-12-22T07:35:47.937Z","updated_at":"2025-04-11T14:42:30.905Z","avatar_url":"https://github.com/mneedham.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-Time Analytics Book Code Repository\n\nThe code for Dunith Dhanushka and Mark Needham's upcoming book on Real-Time Analytics.\n\n*Put the architecture diagram here*\n\n## Install components\n\n```bash\ndocker-compose \\\n  -f docker-compose-base.yml \\\n  -f docker-compose-pinot.yml \\\n  -f docker-compose-dashboard-enriched.yml \\\n  -f docker-compose-dashboard.yml up\n```\n\n```bash\ndocker-compose \\\n  -f docker-compose-base.yml \\\n  -f docker-compose-pinot-m1.yml \\\n  -f docker-compose-dashboard.yml \\\n  -f docker-compose-enrich-streams.yml \\\n  -f docker-compose-dashboard-enriched.yml \\\n  up\n```\n\nOnce that's run, you can navigate to the following:\n\n* Pinot UI - http://localhost:9000\n* Streamlit Dashboard - http://localhost:8501\n\n\n## Add enriched table\n\n```\ndocker run -v $PWD/pinot/config:/config \\\n  --network rta \\\n  apachepinot/pinot:0.11.0 \\\n  AddTable -schemaFile /config/orders_enriched/schema.json \\\n           -tableConfigFile /config/orders_enriched/table.json \\\n           -controllerHost pinot-controller -exec\n```\n\n## (Optional) Downloading products\n\nSetup Python environment:\n\n```bash\npython -m venv venv\nsource venv/bin/activate\n```\n\nInstall dependencies:\n\n```bash\npip install -r scripts/requirements.txt\n```\n\nDownloading product pages:\n\n```bash\npython scripts/download_products.py\n```\n\nScrape product data:\n\n```bash\npython scripts/scrape_products.py\n```\n\nThe products will be written to [simulator/data/products.json](simulator/data/products.json)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmneedham%2Freal-time-analytics-book","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmneedham%2Freal-time-analytics-book","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmneedham%2Freal-time-analytics-book/lists"}