Installs Sekisho in a Phoenix application.
$ mix igniter.install sekisho
or, with Sekisho already in the deps, mix sekisho.install.
Igniter shows each change as a diff
before it writes, and running the task again changes nothing:
- the migration of Sekisho's tables (
mix sekisho.gen.migration), with ids of your repo's type; lib/my_app/permissions.ex, your permissions module, with no policy yet: your file, written once;import MyApp.Permissions, only: [allowed?: 3]in thehtml_helpersof your web module, for templates;.formatter.exsimports Sekisho's, so policies readrole :viewer, permissions: [:read].
Then write your first policy (Sekisho.Policy) and add it to
policies:.