wildfire chat server source initial submit

This commit is contained in:
heavyrain2012
2019-03-16 17:04:23 +08:00
parent e59217bd10
commit cab3ca0916
1466 changed files with 528862 additions and 15919 deletions
+17 -68
View File
@@ -1,81 +1,30 @@
# server
本工程为野火IM 社区版IM服务软件。野火IM作为一个通用的即时通讯SDK,可以集成到各种应用中。请阅读[docs](http://docs.wildfirechat.cn)或下载服务器[发布版本](https://github.com/wildfirechat/server/releases)
## What is Moquette?
#### 体验Demo
我们提供了体验demo,请使用微信扫码下载安装体验
[![Build Status](https://api.travis-ci.org/moquette-io/moquette.svg?branch=master)](https://travis-ci.org/moquette-io/moquette)
![野火IM](http://static.wildfirechat.cn/download_qrcode.png)
* [Documentation reference guide](http://moquette-io.github.io/moquette/) Guide on how to use and configure Moquette
* [Google Group](https://groups.google.com/forum/#!forum/moquette-mqtt) Google Group to participate in development discussions.
#### 应用截图
![ios-demo](http://static.wildfirechat.cn/ios-demo.gif)
Moquette aims to be a MQTT compliant broker. The broker supports QoS 0, QoS 1 and QoS 2.
<img src="http://static.wildfirechat.cn/ios-message-view.png" width = 50% height = 50% />
Its designed to be evented, uses Netty for the protocol encoding and decoding part.
## Embeddable
<img src="http://static.wildfirechat.cn/ios-contact-view.png" width = 50% height = 50% />
[Freedomotic](http://www.freedomotic.com/) Is an home automation framework, uses Moquette embedded to interface with MQTT world.
<img src="http://static.wildfirechat.cn/ios-discover-view.png" width = 50% height = 50% />
Moquette is also used into [Atomize Spin](http://atomizesoftware.com/spin) a software solution for the logistic field.
<img src="http://static.wildfirechat.cn/ios-settings-view.png" width = 50% height = 50% />
Part of moquette are used into the [Vertx MQTT module](https://github.com/giovibal/vertx-mqtt-broker-mod), into [MQTT spy](http://kamilfb.github.io/mqtt-spy/)
and into [WSO2 Messge broker](http://techexplosives-pamod.blogspot.it/2014/05/mqtt-transport-architecture-wso2-mb-3x.html).
<img src="http://static.wildfirechat.cn/ios-messagelist-view.png" width = 50% height = 50% />
## Try the demo instance
<img src="http://static.wildfirechat.cn/ios-chat-setting-view.png" width = 50% height = 50% />
Point your browser to [cloud instance](http://broker.moquette.io), request an account then use it from your MQTT clients.
<img src="http://static.wildfirechat.cn/ios-takephoto-view.png" width = 50% height = 50% />
## 1 minute set up
<img src="http://static.wildfirechat.cn/ios-record-voice-view.png" width = 50% height = 50% />
Start play with it, download the self distribution tar from [BinTray](https://bintray.com/artifact/download/andsel/generic/moquette-0.12.1.tar.gz) ,
the un untar and start the broker listening on `1883` port and enjoy!
<img src="http://static.wildfirechat.cn/ios-location-view.png" width = 50% height = 50% />
```
tar xvf moquette-distribution-0.12.1.tar.gz
cd bin
./moquette.sh
```
Or if you are on Windows shell
```
cd bin
.\moquette.bat
```
## Embedding in other projects
To embed Moquette in another maven project is sufficient to include a repository and declare the dependency:
```
<repositories>
<repository>
<id>bintray</id>
<url>https://jcenter.bintray.com</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
```
Include dependency in your project:
```
<dependency>
<groupId>io.moquette</groupId>
<artifactId>moquette-broker</artifactId>
<version>0.12.1</version>
</dependency>
```
## Build from sources
After a git clone of the repository, cd into the cloned sources and: `./gradlew clean moquette-distribution:distMoquetteTar` or
`./gradlew clean moquette-distribution:distMoquetteZip`.
In distribution/build directory will be produced the selfcontained file for the broker with all dependencies and a running script.
<img src="http://static.wildfirechat.cn/ios-voip-view.png" width = 50% height = 50% />