The Wayback Machine - https://web.archive.org/web/20200912220707/https://github.com/mingcw/chat-here
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

chat-here

基于 Laravel 5.4 和 GatewayWorker 3.0 的响应式聊天室。

运行截图在最后。

框架/库/插件

环境/工具

特性

  • 多用户/多房间
  • 用户注册/登录
  • 房间列表/创建
  • 公聊/私聊
  • 断线自动重连
  • 播放网易云音乐歌单/自定义音乐url

安装

1、克隆到本地

git clone https://github.com/mingcw/chat-here.git

2、安装依赖

composer install

3、准备数据库

mysql -u your_name -p
<Enter password>
mysql>create database `chat-here`;
mysql>exit;

4、配置.env

cp .env.example .env

Windows 环境请手动复制

(a) 修改以下字段

APP_NAME='Chat Here'
...
APP_URL=your_virtual_host
...
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE='chat-here'
DB_USERNAME=your_name
DB_PASSWORD=your_password

(b) 生成APP_KEY

php artisan key:generate

5、数据库迁移

php artisan migrate

6、数据填充

php srtisan db:seed

7、目录权限(针对 Linux 环境)

chmod -R 0777 storage/

8、启动 GatewayWorker

cd gatewayworker/
composer install
php start.php start -d

停止:php start.php stop

注意:Windows 环境不支持php start.php start -d等命令,请直接双击start_for_win.bat文件来启动 GatewayWorker,停止按 Ctrl + C

更多 GatewayWorker 启动停止命令,请参考文档

9、浏览器访问 http://your_virtual_host

测试账号

请使用多个浏览器测试(或浏览器新开隐私模式

账号 密码
萌新 user11111111
乌龟 user11111111
老司机 user11111111

截图

说明

目录音乐播放器使用已封装好的 HTML5 插件,部分网易云音乐的歌单能拉取出来,但无法播放。

协议

MIT

About

A responsive chat room based on Laravel5.4 and GatewayWorker3.0. (基于 Laravel 5.4 和 GatewayWorker 3.0 的响应式聊天室。)

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.