{"id":17281595,"url":"https://github.com/sumory/gru-example","last_synced_at":"2025-04-14T10:04:22.148Z","repository":{"id":145420783,"uuid":"44740870","full_name":"sumory/gru-example","owner":"sumory","description":"Gru使用示例 - Web Chat","archived":false,"fork":false,"pushed_at":"2015-10-25T15:05:06.000Z","size":6647,"stargazers_count":61,"open_issues_count":0,"forks_count":36,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-14T10:03:59.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/sumory.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":"2015-10-22T11:25:43.000Z","updated_at":"2021-08-10T09:07:46.000Z","dependencies_parsed_at":"2023-04-11T01:31:10.809Z","dependency_job_id":null,"html_url":"https://github.com/sumory/gru-example","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/sumory%2Fgru-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumory%2Fgru-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumory%2Fgru-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumory%2Fgru-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumory","download_url":"https://codeload.github.com/sumory/gru-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860298,"owners_count":21173342,"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-10-15T09:46:17.738Z","updated_at":"2025-04-14T10:04:22.078Z","avatar_url":"https://github.com/sumory.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\ngru-example基于[Gru](https://github.com/sumory/gru)的示例项目，即时应用最典型的代表就是IM，这个示例是一个基于Gru的web聊天应用。\n\n\n#### 安装\n\n- 需首先配置好Gru集群\n\t- 集群配置详见Gru文档\n\t- 若不需要集群，Gru项目只需要部署一个模块(spear)即可\n- 本示例是一个Node.js项目，需先安装[Node.js](http://nodejs.org)\n- clone下本示例\n\t- npm install相关依赖\n\t- 配置文件在config目录下，特别注意spearNode配置，此配置为一个可用的spear节点\n\t- 运行node app.js，默认会加载config/dev.js配置文件，连接本地的spear节点\n\n\n#### screenshots\n\n支持私聊、群聊\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd width=\"50%\"\u003e\u003cimg src=\"assets/private-chat.png\"/\u003e\u003c/td\u003e\n        \u003ctd width=\"50%\"\u003e\u003cimg src=\"assets/group-chat.png\"/\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumory%2Fgru-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumory%2Fgru-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumory%2Fgru-example/lists"}