An open API service indexing awesome lists of open source software.

https://github.com/mopp/brownie

Hobby Distributed Key-Value Store
https://github.com/mopp/brownie

distributed-systems elixir hobby-project kvs

Last synced: 8 months ago
JSON representation

Hobby Distributed Key-Value Store

Awesome Lists containing this project

README

          

# Brownie

Hobby Distributed Key-Value Store

# Requirements

- elixir
- docker-compose

# How to test

```console
make run
```

On another console:

```console
make attach

iex(one@brownie1.com)> Brownie.Coordinator.request({:create, "abc", "def"})
:ok

iex(one@brownie1.com)> Brownie.Coordinator.request({:read, "abc"})
{:ok, "def"}

iex(one@brownie1.com)> Brownie.Coordinator.request({:update, "abc", "xyz"})
{:ok, "xyz"}

iex(one@brownie1.com)> Brownie.Coordinator.request({:delete, "abc"})
:ok

iex(one@brownie1.com)> Brownie.test false
```