NOTE: This is a work in progress, please do not base your application on these ideas. Yet.
An example using "Essential Ecto", a technique to consistently model your domain with business rules in your application's Context Modules and Ecto Schemas.
The "Essential Ecto" (working title) specification is the application of Streamlined Object Modeling by Jill Nicola, Mark Mayfield and Mike Abney applied to Ecto.
- To learn more about the application, see:
Nomify
module documentation. - To learn about this technique checkout out the docs:
mix docs
Prerequistes:
Execute the following:
cp env.template .env
# No configuration required
script/setup
To see examples of invoking actions on context module, run the notebooks:
- Install LiveBook: https://github.com/livebook-dev/livebook#escript
- Run LiveBook:
livebook server ./notebooks/index.livemd
- Run application, e.g.:
iex --name [email protected] --cookie bar -S mix
- Select Runtime settings, keyboard shortcut
sr
and configure to connect