Coder Social home page Coder Social logo

go_chat's Introduction

go+vue即时通讯项目

前端

使用vue3 + ts构建

后端

gin框架

实现功能

  1. 实时聊天,群聊
  2. 接收未读消息
  3. 保存/删除会话信息
  4. 添加好友/加入群组
  5. 创建群聊
  6. 邮箱验证
  7. 支持markdown格式

项目截图

登录 image 注册 image 忘记密码/修改密码 image 好友/群组列表 image 聊天/会话页面 image 未读通知 image image 好友信息 image 信息修改 image

运行项目

克隆项目
配置配置项

在根目录下添加config.ini,添加如下配置

# 服务器配置
port = 9000
# 邮箱授权码
emailCode = xxxxx
# 邮箱
email = xxxxx
# mysql配置
[mysql]
user = xxxx
password = 
host = 
port = 
dbname = chat
# redis配置
[redis]
host = 
port = 6379
# 七牛云配置
[qiniu]
Zone = 2
# 七牛云密钥
AccessKey = vimdq2y7IBV1UNc7B1zf-KKEB46NCmMQZjT7nhsP
SecretKey = vlqqwGjx_1rt7kQEu3rdoSt3zMUpP7rL2GdSjx1E
Bucket = gochatimg
QiniuServer = http://s3sk3sf71.hb-bkt.clouddn.com
下载go依赖
go mod tidy
下载前端依赖(在web/user)

要有ts环境以及pnpm(网上搜一下就能搞好)

pnpm install
迁移数据库

运行test目录下mai.go即可

启动!

根目录

go run main.go

web/user

pnpm run dev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.