jackal

実験用の以下の最低限の機能のみを実装したメッセージアプリ Experimental message app that implements only the following functions

  • create user
  • send message
  • fetch message

require Environment variable

# rabbitmq(message broker)のaddr
RABBIT_URL=
# redis(message保存用のdb?)のaddr
REDIS_URL=
# sqlite(userデータ保存用)のpath
SQLITE_PATH=

example

RABBIT_URL=amqp://guest:[email protected]:5672/
REDIS_URL=host.docker.internal:6379
SQLITE_PATH=/data/sqlite/jackal.sqlite

run

server

# .env.localに環境変数が書いてあったとすると
# If the environment variables are written in .env.local...
docker compose --env-file .env.local up

client

go run cmd/tui/main.go -userid=<YOUR_USERID> -name=<DISPLAYNAME> -receiver=<RECEIVER_USERID>

todo

  • tui client
  • e2ee
  • replace pulsar to other mq(pulsar is too heavy for this project) pulsar -> rabbitmq

GitHub

View Github