EasyChat-Web 是一个在线聊天室的前端页面,它基于 vue 和 element-plus 实现,使用 websocket 进行实时通讯,基本功能已搭建完善。
Light | Dark |
---|---|
![]() |
![]() |
![]() |
![]() |
你需要在本地安装 node 和 git,本项目技术栈基于 vue 、pinia、vue-router、axios、stompjs 和 element-plus。
- 拉取项目源码
# gitlab
git clone https://gitlab.com/th1nk-er/EasyChat-Web.git
# github
git clone https://github.com/th1nk-er/EasyChat-Web.git
- 安装依赖并启动预览
pnpm install
pnpm dev
- 构建镜像
docker build . -t easychat-web:latest
- 启动容器
# 默认配置启动,后端地址为 localhost:8080
docker run -p 3000:80 -d easychat-web:latest
# 指定后端地址
docker run -p 3000:80 -e BACKEND_HOST=localhost -e BACKEND_PORT=8080 -d easychat-web:latest
Copyright (c) 2024 th1nker