KamilLelonek / cqs-in-elixir

An example of using CQS in Elixir

Home Page:https://blog.lelonek.me/command-query-separation-in-elixir-ac742e60fc7d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cqs

Command-Query separation in Elixir.

Installation

If available in Hex, the package can be installed by adding cqs to your list of dependencies in mix.exs:

def deps do
  [
    {:cqs, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/cqs.

Development

To setup the database, execute:

mix ecto.create

To run all migrations, execute:

mix ecto.migrate

Tests

To execute the entire test suite, run:

mix test

Usage

The project is described as a blogpost. You can find it here: https://blog.lelonek.me/command-query-separation-in-elixir-ac742e60fc7d