Giter VIP home page Giter VIP logo

go-chat's Introduction

Lumen-IM 服务端(golang)

项目简介

Lumen IM 是一个网页版即时聊天系统,界面简约、美观、操作简单且容易进行二次开发。

功能模块
  • 基于 WebSocket 服务做消息即时推送
  • 支持私聊及群聊
  • 支持聊天消息类型有 文本、代码块、图片及其它类型文件,并支持文件下载
  • 支持聊天消息撤回、删除或批量删除、转发消息(逐条转发、合并转发)及群投票功能
  • 支持编写个人笔记、支持笔记分享(好友或群)

查看前端代码

项目预览

项目安装

  1. 下载源码
$ git clone [email protected]:gzydong/go-chat.git
  1. 拷贝项目根目录下 config.example.yaml 文件为 config.yaml 并正确配置相关参数
$ cp config.example.yaml config.yaml # 请务必正确配置相关参数
  1. 安装依赖包
$ go mod tidy
  1. 安装相关依赖命令行工具
$ make install
  1. 初始化数据库
$ make migrate
  1. 开发环境下启动服务
# 打开两个终端,分别运行下面两个命令

$ go run ./internal/http       # 本地启动 http 服务
$ go run ./internal/websocket  # 本地启动 websocket 服务

# 或者一下命令

$ make http                    # 本地启动 http 服务
$ make websocket               # 本地启动 websocket 服务
  1. 编译后运行
$ make build                   # 执行编译命令

# 执行后可在 ./bin 目录下看到

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.