Kv
Key/value store in Elixir using Commanded CQRS/ES.
Getting started
-
Clone Git repo from GitHub:
git clone https://github.com/slashdotdash/kv.git
-
Fetch mix dependencies:
mix deps.get
-
Create and initialise event store database:
mix do event_store.create, event_store.init
-
Create and migrate read store database:
mix do ecto.create, ecto.migrate
Finally, run the application using iex
:
iex -S mix run
Usage
Once you've started an iex
console you can start interacting with the kv
application by dispatching commands.
:ok = Kv.Router.dispatch(%Kv.PutValue{key: "foo", value: 1})
:ok = Kv.Router.dispatch(%Kv.IncrementValue{key: "foo", increment: 1})