{"id":18879063,"url":"https://github.com/zhuima/gin-react-wesocket","last_synced_at":"2025-08-03T23:34:32.234Z","repository":{"id":81212716,"uuid":"548826058","full_name":"zhuima/gin-react-wesocket","owner":"zhuima","description":"go + gin + react + websocket exec system command","archived":false,"fork":false,"pushed_at":"2022-10-10T08:58:15.000Z","size":1625,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-31T06:19:01.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zhuima.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":"2022-10-10T08:39:50.000Z","updated_at":"2022-10-10T08:57:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"30b5b307-fb6b-4b8d-8267-c85bec420d34","html_url":"https://github.com/zhuima/gin-react-wesocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhuima/gin-react-wesocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuima%2Fgin-react-wesocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuima%2Fgin-react-wesocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuima%2Fgin-react-wesocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuima%2Fgin-react-wesocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhuima","download_url":"https://codeload.github.com/zhuima/gin-react-wesocket/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuima%2Fgin-react-wesocket/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268628461,"owners_count":24280966,"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-03T02:00:12.545Z","response_time":2577,"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":[],"created_at":"2024-11-08T06:33:01.309Z","updated_at":"2025-08-03T23:34:32.173Z","avatar_url":"https://github.com/zhuima.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"GIN  + React + Vite 实现websocket的demo\n\n# 研究原因\n\n- 看别人的实现觉得很牛逼(类似Jenkins的日志输出)，自己模(抄)仿(袭)下来感觉确实很牛逼，牛逼到自己都看不懂对应的代码，尤其是React写的懵逼的不要不要的\n- 这只能是一个小demo, 玩具级别的都算不上\n\n# Demo\n\n\u003e ping\n\n![home](./docs/home.png)\n\n\u003e ping\n\n![ping](./docs/ping.png)\n\n\u003e uptime\n\n![uptime](./docs/uptime.png)\n\n\u003e ansible\n\n![ansible](./docs/ansible.png)\n\n# Server\n\n- Gin + gorilla/websocket 实现，其实是抄的 gorilla 官方的 Example\n\n# Client\n\n- Vite + React + bootstrap 实现\n\n# 使用\n\n\u003e 后端启动\n\n```python\ncd gin-react-websocket/server\ngo run main.go\n\n```\n\n\u003e 前端启动\n\n```python\ncd gin-react-websocket/client\nyarn dev\n\n```\n\n# Note\n\n- 如果你自定义了server端的ip和端口，记得修改client/.env文件\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhuima%2Fgin-react-wesocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhuima%2Fgin-react-wesocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhuima%2Fgin-react-wesocket/lists"}