1 Star 0 Fork 39

向阳 / speedy-im

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

speedy-im

star QQ群

介绍 | DEMO | 开发 | 开发计划 | 系统架构 | 联系作者

介绍

基于uni-app + @hyoga/uni-socket.io + express + mysql开发高性能的即时通讯系统。已支持点对点通讯,计划支持群组通讯、上下线等事件消息等众多功能。

正在持续开发中,目前仅部分UI开发完成。

DEMO

IM.apk ,已有基础UI以及登陆、点到点聊天等功能。

开发

客户端测试账号密码:
账号:13600000003 密码:admin

# 克隆项目
$ git clone git@github.com:AspenLuoQiang/speedy-im.git
$ cd speedy-im

# 启动数据库
$ cd docker
$ docker-compose up -d mysql
# 导入数据库,见下方导入数据库

# 启动服务端
$ cd server
$ yarn && yarn dev

# 以上为已开发模式启动服务端,不想改动服务端代码,只是单纯想开启服务器可以如下操作
$ cd docker
$ docker-compose up

# 安装客户端依赖,安装完成后使用HBuilder X运行到浏览器即可,请确保此时服务端已正确运行,否则会导致接口无法调用
$ cd client
$ yarn

导入数据库

  • 本项目使用docker部署开发,待docker数据库启动后连接数据库,默认数据库配置见下方MySQL默认配置
  • 导入初始数据库,位置为docker/mysql/speedy-im.sql

MySQL默认配置

地址:127.0.0.1
端口:3307
用户名:root
密码:123456

开发计划

系统架构

后端框架

采用express + socket.io + mysql开发,使用docker部署。

错误码

返回结果采用以下结构,错误码参考HTTP状态码设计,更多状态码逐步添加中。

{
  errno: 200,
  errmsg: '',
  data: {},
}
错误码 含义 备注
0 业务操作失败 业务上操作失败导致的错误,但未定义具体code值
200 正常 HTTP 状态码
401 未登陆 HTTP 状态码
500 内部错误 HTTP 状态码

客户端

客户端使用uni-app开发,可以同时开发安卓端与IOS端,简单快捷。

UI开发

UI图

联系作者

  • qq群
  • 公众号,欢迎关注,不定时更新

前端小白菜

MIT License Copyright (c) 2020 罗强 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.

简介

 基于uni-app开发的im系统 展开 收起
TypeScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
TypeScript
1
https://gitee.com/liyiliang123/speedy-im.git
git@gitee.com:liyiliang123/speedy-im.git
liyiliang123
speedy-im
speedy-im
master

搜索帮助

14c37bed 8189591 565d56ea 8189591