Giter Site home page Giter Site logo

candy's Introduction

Logo

Build Status Go Report Card GoDoc

项目背景

Candy是新一代即时通信软件, 我们是一套完整的即时通讯开源解决方案,包括移动端,WEB端,PC端。

Candy架构

candy server

  • Gate 接收客户端请求,负责客户端连接维护
  • Master 负责全局ID生成,及节点管理等功能
  • Notifer 消息分发中心,整个系统的消息队列, 负责在线及离线消息推送
  • Store 逻辑处理中心,单机版中兼顾存储服务

Android

https://github.com/dearcode/candy-android  

Web

https://github.com/dearcode/web  

CUI

https://github.com/zeazen/candy-cui  

项目运行

获取源码

mkdir -p $GOPATH/src/github.com/dearcode
cd $GOPATH/src/github.com/dearcode
git clone [email protected]:dearcode/candy.git

编译安装

make
依次启动 master, notice, store, gate
直接运行不需要参数,默认使用9000到9004端口

测试运行

项目根目录中的candy.go是一个命令行的全功能展示
go run candy.go

跨平台支持

Candy客户端可以直接使用gomobile编译出安卓/IOS客户端可用的库文件,可以方便快捷的和服务器通信, 用户无需关注客户端服务器的实现; 只需要把重点放在客户端开发上。

Android库编译

可以直接使用gomobile编译出安卓可用的版本

环境要求:

  1. JDK 1.7版本以上
  2. Android SDK
  3. 安装gomobile

编译命令:

gomobile bind -v -target=android/arm github.com/dearcode/candy/client

IOS库编译

可以直接使用gomobile编译出IOS可用的版本

环境要求:

  1. IOS SDK
  2. 安装gomobile

编译命令:

gomobile bind -v -target=ios github.com/dearcode/candy/client

技术讨论QQ群:Circle CI 29996599

candy's People

Contributors

2string avatar c-wind avatar davygeek avatar lxqxsyu avatar lyz1005 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.