/cashshuffle

A CashShuffle server implented in Go.

Primary LanguageGoMIT LicenseMIT

License ReportCard Build

cashshuffle

A CashShuffle server implented in Go. For more information on CashShuffle visit https://cashshuffle.com.

Install

go get -v github.com/cashshuffle/cashshuffle
cd $GOPATH/src/github.com/cashshuffle/cashshuffle
make
make install

If you have issues building cashshuffle, you can vendor the dependencies by using gvt:

go get -u github.com/FiloSottile/gvt
cd $GOPATH/src/github.com/cashshuffle/cashshuffle
gvt restore

Usage

To start the server, just set the pool size and add your SSL cert and key.

cashshuffle -s 5 -c <cert> -k <key>

To start the server using LetsEncrypt to manage the cert.

# LetsEncrypt requires port 80 for negotiation.
# Therefore sudo is required.
sudo cashshuffle -s 5 -a <hostname>

You can use --help to view all the options.

Usage:
  cashshuffle [flags]

Flags:
  -a, --auto-cert string     register hostname with LetsEncrypt
  -b, --bind-ip string       IP address to bind to
  -c, --cert string          path to server.crt for TLS
  -d, --debug                debug mode
  -h, --help                 help for cashshuffle
  -k, --key string           path to server.key for TLS
  -s, --pool-size int        pool size (default 5)
  -p, --port int             server port (default 1337)
  -z, --stats-port int       stats server port (default 8080)
  -v, --version              display version
  -w, --websocket-port int   websocket port (default 1338)

License

cashshuffle is released under the MIT license.