chat-v2

module
v0.0.0-...-6e4093b Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT

README

A Chat system implemented in GO

Go Report Card codecov


Installation

Clone
  • Clone this repo to your local machine using
git clone https://github.com/adrianbrad/chat-v2
Go get
  • Go get this repo to your local machine and into your $GOPATH/src/github.com/adrianbrad folder using
go get https://github.com/adrianbrad/chat-v2

Usage

Prerequisites
  • A PostgreSQL database and valid credentials to connect passed to a database config file in the /configs folder.

  • Set the BASEDIR variable in the Makefile to the project root and the DATABASE_CONFIG_FILE variable to the config file containing your valid db credentials.

Run
Directly
go run ./cmd/chat-database -b={project-path} -d={database-config-file} -a={application-config-file}
Make
make run
Exposed API endpoints
/users
/rooms
/chat
/auth
/client/main.wasm
Backend Authentication
  • When making calls to backend endpoints that require Backend Authentication, you have to add an Authorization header containg a HMAC-SHA256 hash, created from the current time in UNIX Epoch format and UTC timezone and the secret key. The date in UNIX Epoch format and UTC timezone should be added to the Date header.

Jump to

Keyboard shortcuts

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