abchat

command module
v0.0.0-...-83457bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 9 Imported by: 0

README

abchat

Realtime chat application. See design folder for more details.

Features

  • One-to-one or group chat, unified by "conversation"
  • Send messages by HTTP request, receive messages by WebSocket
  • Redis as message queue for horizontal scalability
  • Clean architecture following clean-fiber

Run

Start server
cp .env.example .env
go run main.go

# or with air for auto reload
# go install github.com/air-verse/air@latest
air

# or build for production
go build
./abchat
Run tests
go test -v ./tests/*
Test chat

Edit and run scripts in scripts folder to test chat functionality.

  1. Create users
  2. Create conversations
  3. Connect via WebSocket
  4. Send message
  5. Get messages
  6. Delete message

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
app
models
tests
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL