View Source mix tamnoon.override_root (Tamnoon v1.0.0-rc.3)
Creates a default router module and a root component.
Example Usage
$ mix tamnoon.override_root
Successfully created "lib/router.ex"!
Successfully created "lib/components/root.ex"!
Done! Now add router: MyApp.Router to your Tamnoon options in `application.ex` as
such:
def start(_type, _args) do
children = [
{Tamnoon, [[router: MyApp.Router]]}
]
opts = [strategy: :one_for_one, name: MyApp.Supervisor]
Supervisor.start_link(children, opts)
end