{"id":21607446,"url":"https://github.com/janrockdev/realtimeview","last_synced_at":"2025-03-18T15:21:12.304Z","repository":{"id":144360322,"uuid":"483580275","full_name":"janrockdev/realtimeview","owner":"janrockdev","description":"Visualizing real-time metrics from Golang server (using WebSockets and plain-javascript).","archived":false,"fork":false,"pushed_at":"2022-04-23T10:49:54.000Z","size":272,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T19:34:50.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/janrockdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2022-04-20T08:59:09.000Z","updated_at":"2022-08-23T18:51:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"03ce3657-1343-47e6-9982-95346379f524","html_url":"https://github.com/janrockdev/realtimeview","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/janrockdev%2Frealtimeview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janrockdev%2Frealtimeview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janrockdev%2Frealtimeview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janrockdev%2Frealtimeview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janrockdev","download_url":"https://codeload.github.com/janrockdev/realtimeview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244246552,"owners_count":20422459,"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-11-24T20:30:53.092Z","updated_at":"2025-03-18T15:21:12.274Z","avatar_url":"https://github.com/janrockdev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RealTimeView (Golang)\n\nVisualizing real-time metrics from golang server (using WebSockets and plain-javascript). The aim is to create simple end-to-end solution.\n\nFrontend:\n![screenshot](screenshot.png \"Screenshot\")\n\n## Backend\nIt is a service that exposes certain endpoints to get data from sources like database.\nIn this case we are exposing \"/stream\" endpoint which gives us current cpu usage. \nHere it is returning randomly generated data. \nThis is written in MVC style for better division of responsibilities.\n\n#### To start backend:\n``` bash\n// Starts server on :8082, To change port edit backend/stream.go, proxy/main.go (since proxy needs to know backend location) \ngo run cmd/main.go\n```\n\n## Frontend: \nIt is a service that serves html/js files to the client. \nThis service talks to backend for pulling dynamic data, in this case live CPU usage. (connection goes through proxy)\n\n#### To start frontend:\n``` bash\n// Starts server on :8080, To change port edit frontend/main.go\ngo run main.go\n```\n\n## Proxy\nIt is a service which behaves as proxy/gateway to all the backend services.\nThis service can perform various functions such as authenticating user, auditing sessions, routing requests to\nparticular backend service. Here it is forwarding requests to backend.\n\n#### To start proxy:\n``` bash\n// Starts server on :8081, To change port edit proxy/main.go, frontend/views/index.html (since frontend needs to know proxy location) \ngo run main.go\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanrockdev%2Frealtimeview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanrockdev%2Frealtimeview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanrockdev%2Frealtimeview/lists"}