34 Star 51 Fork 50

Anoyi / ANOYI-IM

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

分支说明

  • master : 单机版,所有用户都连接到同一服务,单个服务资源有限,不支持大规模用户同时在线
  • cluster: 集群版,支持大规模用户同时在线、互相通信

技术栈说明

单机版

  • Spring Boot / Spring Security / Spring WebSocket / MongoDB

集群版

  • Spring Boot / Spring Security / Spring WebSocket / MongoDB / Nats
  • Docker Swarm

单机版开发文档

1、运行服务【IDEA 方式】

启动 MongoDB,并在 application.yml 中配置, 运行 Application 即可启动应用

2、运行服务【Maven 方式】

启动 MongoDB,并在 application.yml 中配置, 执行以下命令:

mvn spring-boot:run

3、运行服务【Docker 方式】

首先,打包应用并构建镜像:

mvn clean package

docker bulid -t anoyi-im .

然后,使用 Docker 启动 MongoDB:

docker run -d --name mongo -p 27017:27017 mongo

最后,启动应用:

docker run -d --name anoyi-im --link mongo:mongo -p 8080:8080 anoyi-im

4、运行服务【Docker-Compose 方式】 首先,打包应用:

mvn clean package

然后,启用应用

docker-compose up

联系作者

The MIT License (MIT) Copyright (c) 2017 朽之丶 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

轻量级微服务实践 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/anoyi/anyim.git
git@gitee.com:anoyi/anyim.git
anoyi
anyim
ANOYI-IM
master

搜索帮助

14c37bed 8189591 565d56ea 8189591