Navigation Menu

Skip to content

mogody/swoole-vue-webim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swoole-vue-webim

这是一个Web版的聊天应用,前端基于Vue来构建,用Vuex来进行状态管理,webpack构建;服务端通过Swoole来实现。基本功能有单聊、群聊、用户状态、消息状态以及通知信息。

如何部署?

1.前期准备

需要安装npmSwoole,其中还要安装webpack来作为构建工具,所以你需要拥有Linux系统。具体安装过程可以查看相关工具的文档。

2.构建项目

切换到项目目录,安装相关依赖:

npm install

构建项目:

npm run build

3.启动服务

其实很简单,启动自动化构建:

npm run dev

切换到app目录,执行:

php websocket.php

4.访问

http://localhost:8080

Job done!

License

MIT

About

一个Web聊天应用,基于Vue和Swoole构建

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published