Skip to content

Latest commit

 

History

49 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FChat

这是一个基于 Electron + Vue3 + Node.js + MongoDB + Mongoose + Vite 的桌面端在线聊天软件,支持实时消息推送和用户认证。更多功能正在开发中..

demo01

demo01

demo01

demo01

demo05

demo01

demo00

现有功能

  • 用户注册、登录、认证
  • 添加好友
  • 实时消息推送
  • 表情发送
  • 消息记录游标分页
  • 消息记录本地缓存
  • 消息已读未读识别
  • 主题切换
  • 语音消息发送
  • 文件消息发送
  • 集成大模型
  • 信息端到端加密

安装步骤

后端
  1. cd back-end:进入后端目录
  2. npm install:安装依赖
  3. npm run start:启动后端(development 模式)
  4. npm run serve:启动后端(production 模式)
前端
  1. cd front-end:进入前端目录
  2. npm install:安装依赖
  3. npm run dev:启动前端项目(development 模式)
  4. npm run build:win:打包前端项目,生成可执行文件(production 模式)

配置说明

  • /back-end/.env.development/back-end/.env.production 中分别配置对应环境的服务端信息、MongoDB 数据库和 JWT 密钥

    • 配置参考:

      PROTOCOL=http
      IP=127.0.0.1
      PORT=8080
      DB_HOST=127.0.0.1
      DB_PORT=27017
      DB_NAME=FChat
      SECRET_KEY=123123123123
      MAIL_HOST=smtp.qq.com
      MAIL_PORT=465
      MAIL_USER=test@qq.com
      MAIL_PASS=123123123123
  • /front-end/.env.development/front-end/.env.production 中配置客户端信息

    • 配置参考

      VITE_PROTOCOL = 'ws'
      VITE_PORT = '8080'
      VITE_IP = '127.0.0.1'
      # 讯飞星火大模型认证信息
      VITE_API_SECRET = ''
      VITE_API_KEY = ''
      VITE_APPID = ''

许可

MIT License

联系方式

About

使用 Electron + Vue 编写的桌面聊天应用

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages