Getting started
Commanded can be installed from hex as follows.
Add
commandedto your list of dependencies inmix.exs:def deps do [{:commanded, "~> 1.0.0"}] endOptionally add
jasonto support JSON serialization viaCommanded.Serialization.JsonSerializer:def deps do [{:jason, "~> 1.1"}] endFetch mix dependencies:
$ mix deps.getDefine a Commanded application module for your app, see the "Application" guide for details.
defmodule MyApp.Application do use Commanded.Application, otp_app: :my_app endConfigure one of the supported event stores by following the "Choosing an Event Store" guide.