Go to file
Adam Dymitruk 9155c3f0c3 Merge pull request #4 from nicdex/fix-create-perm-for-linux
Fix create permission for linux
2016-07-05 15:47:26 -07:00
scripts Minor fixes to bootstrap and install scripts 2016-02-22 12:18:18 -08:00
simpleserver Fix goes package path 2016-05-30 20:26:58 -07:00
.gitignore Adding .gitignore 2016-02-16 21:34:19 -08:00
goes_test.go simpleserver replies with error instead of crashing, adding tests on 2016-02-16 21:30:50 -08:00
goes.go Adding readable disk storage with minimalistic tests 2016-02-17 18:15:40 -08:00
goes.iml First commit 2016-02-12 17:54:50 -08:00
readablediskstorage_test.go Adding readable disk storage with minimalistic tests 2016-02-17 18:15:40 -08:00
readablediskstorage.go Fix create permission for linux 2016-06-26 00:00:43 -07:00
README.md Update README 2016-06-25 00:22:50 -07:00
serialization.go Adding readable disk storage with minimalistic tests 2016-02-17 18:15:40 -08:00
storage.go Fix create permission for linux 2016-06-26 00:00:43 -07:00

GoLang implementation of a simple EventStore

Getting started

Pre-requisites

  • Install GoLang version 1.6+
  • Install libsodium* version 1.0.10+ (Linux only^)
  • Install zeromq* version 4.0+ (Linux only^)
  • Install msys2 (Windows only)

* On Linux libsodium and zeromq are installed from source (./configure && make && sudo make install && sudo ldconfig)
^ On Window libzmq and libsodium are installed using pacman in MSYS2 shell (pacman -S mingw-w64-x86_64-zeromq)

Build

Fetching GO packages

In your GOPATH folder, execute the following commands:

go get github.com/adymitruk/goes
go get github.com/pebbe/zmq4
go get github.com/satori/go.uuid

Compiling the binary

In your GOPATH folder, execute the following command:

go build -o bin/goes src/github.com/adymitruk/goes/simpleserver/simpleserver.go

* Use -o bin/goes.exe on Windows

Running the server

In your GOPATH folder, execute the following command:

./bin/goes --db=./events --addr=tcp://127.0.0.1:12345

Both flags are optional and their default values are the same as the example.