https://github.com/weianke/vue-what
基于vue-scoket + node 的简单聊天室
https://github.com/weianke/vue-what
Last synced: 3 months ago
JSON representation
基于vue-scoket + node 的简单聊天室
- Host: GitHub
- URL: https://github.com/weianke/vue-what
- Owner: weianke
- Created: 2021-06-16T08:34:17.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-16T08:37:14.000Z (almost 4 years ago)
- Last Synced: 2025-01-02T11:44:26.697Z (5 months ago)
- Language: Vue
- Size: 107 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chatroom-vue
一个简单的多人聊天室demo。基于vue和node + vue-Socket## 如何运行
进入到目录安装依赖包
```
npm install
```启动server服务(称这个终端为S终端,得先启动后台服务,否则前端页面无法成功连接Socket),在执行以下命令后,成功执行会终端会提示'app listen at:9000'
```
npm run server
```另起窗口(注意:是另起窗口!),启动前端开发服务(称这个终端为B终端),在chatroom-vue目录里执行以下命令,成功执行后,在浏览器输入访问地址`http://localhost:8080`
```
npm run dev
```