simplex messaging server

by simplex-chat

GitHub Readme.md

simplex-server

Server implementing simplex messaging protocol in Go

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

or

Deploy

Development

DB migrations

Install golang-migrate/migrate

Run migrations locally:

migrate -path=migrations -database postgres://localhost:5432/postgres?sslmode=disable up

Running server

PORT=8080 simplex-server

Running tests

To run the tests, the server should be running.

If server runs on localhost:8080:

go test

If server runs on another URI:

go test -server=http://example.com