Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Server application that provides an endpoint for fetching [Tog](https://github.com/escaletech/tog) sessions.

License

Notifications You must be signed in to change notification settings

escaletech/tog-session-server

Repository files navigation

Tog Session Server

CircleCI

Server application that provides an endpoint for fetching Tog sessions.

Usage

$ docker run -d -p 3000:3000 \
  --env 'REDIS_URL=redis://your-redis:6379' \
  escaletech/tog-session-server
$ curl localhost:3000/<NAMESPACE>/<SESSION-ID>

Configuration variables

  • PATH_PREFIX - Prefix to the endpoint (optional, e.g. /_sessions)
  • REDIS_URL - URL for the Redis server used by Tog (required, e.g. redis://my-redis-server.com)
  • REDIS_CLUSTER - Set to true if Redis URL is a cluster (optional, default: false)

Development

Requires Go 1.14 and Redis 4.0+.

Common operations:

  • Run server locally while watching for changes: make dev
  • Run all tests: make test
  • Start tests while watching for changes: make test-watch
  • Release a new version: make release