slashdotdash / kv

Key/value store using Elixir and Commanded CQRS/ES

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kv

Key/value store in Elixir using Commanded CQRS/ES.

Getting started

  1. Clone Git repo from GitHub:

    git clone https://github.com/slashdotdash/kv.git
  2. Fetch mix dependencies:

    mix deps.get
  3. Create and initialise event store database:

    mix do event_store.create, event_store.init
  4. 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})

About

Key/value store using Elixir and Commanded CQRS/ES


Languages

Language:Elixir 100.0%