/cqs-in-elixir

An example of using CQS in Elixir

Primary LanguageElixir

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