Skip to content

songquanpeng/chat-room

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Room

Click here to expend the English version of readme.

Description

  • This is a chat room application.
  • No registration required.
  • Completely anonymous.
  • Each different URL is an independent chat room.
  • The first person get into the chat room will be the administrator of this chat room.

Demo

image

Todo list

  • Support send text message.
  • Support send image.
  • Support share file.
  • Android client.
  • Support multi chat room.
  • Allow admin kick out people.
  • Save the username and allow change it.
  • Message frequency limit.

简介

这是一个在线聊天室应用。

特点如下:

  1. 支持发送图片消息,音频消息,视频消息以及文件消息。
  2. 有配套的安卓客户端
  3. 支持多房间,每个链接都是一个独立的聊天室,例如: https://chat-room-gxnu.onrender.com/独立聊天室
  4. 支持管理员踢人,输入 kick username 即可。
  5. 第一个进入房间的自动成为管理员。
  6. 页面为移动端做了专门优化。

演示

演示站:https://chat-room-gxnu.onrender.com

首次访问需要稍等几秒,这是由于应用冻结了,之后就会好很多。

截图展示: demo

部署

通过 Docker 部署

执行:docker run --restart=always -d -p 3000:3000 justsong/chat-room

开放的端口号为 3000,之后用 Nginx 配置域名,反代以及 SSL 证书即可。

更新版本的命令:docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower -cR

通过源码部署

git clone https://github.com/songquanpeng/chat-room.git
cd chat-room
# 安装依赖
npm install
# 启动服务
npm start
# 推荐使用 pm2 进行启动
# 1. 安装 pm2
npm i -g pm2
# 2. 使用 pm2 启动服务
pm2 start ./app.js --name chat-room

其他

部分样式代码来自:https://github.com/koishijs/koishi , MIT 协议。

About

基于 Node.js 开发的聊天室应用. Chat room powered by Node.js.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors