GithubHelp home page GithubHelp logo

tp5_chat's Introduction

简易聊天室

Php Version Mysql Version Thinkphp Version GateWayWorker Version GateWayWorker Doc GatewayClient Version Layui Version

项目介绍

基于ThinkPHP5.0+GateWayWorker+layui开发的简易聊天室

图片预览

私聊 !新建群聊 !邀请好友

项目特性

  • 实时
    • 更新消息徽章
    • 聊天列表顶置
    • 消息提示
    • 好友上线离线通知
    • 上线离线状态更新
  • 功能
    • 私聊、群聊
    • 新建群聊
    • 邀请用户进群
    • 支持文本消息、qq表情、图片发送
    • 聊天记录持久化

项目运行说明

1.在服务器根路径克隆项目并安装相关依赖

git clone https://github.com/Juenfy/tp5_chat.git
cd tp5_chat
composer install

2.修改thinkphp里的start.php,默认绑定index模块

// ThinkPHP 引导文件
// 1. 加载基础文件
require __DIR__ . '/base.php';

//添加这一行代码绑定index模块
Route::bind('index');

// 2. 执行应用
App::run()->send();

3.新建tp5_chat数据库,导入数据库文件,ThinkPHP数据库配置文件默认连接数据库tp5_chat,密码root,如有不同,请自行修改

4.开启GatewayWorker服务

windows:

直接双击extend/GatewayWorker里的start_for_win.bat

linux:

php extend/GatewayWorker/start.php start -d

5.配置本地虚拟域名,浏览器输入域名回车,项目即可正常运行。

持续更新。。。

后期会持续更新更多功能

tp5_chat's People

Contributors

juenfy avatar

Watchers

James Cloos 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.