Why?
We found ourselves repating statuses
in various projects.
e.g:
auth/init/statuses.ex
So we decided to
"DRY"
and make this single-feature micro-package.
What?
statuses.json
is a maintainable JSON file
that anyone can read
to be informed of statuses
used in our App(s).
It makes it easier for us to keep statuses
in one place
and means
anyone can contribute.
Who?
This package is for us by us.
We don't expect anyone else to use it,
but it's
Open Source
so that
anyone using our Apps can view
and contribute to the list.
How?
Installation
Add statuses
to your dependencies
in mix.exs:
def deps do
[
{:statuses, "~> 1.0.0"},
]
end
Usage
statuses = Statuses.parse_json()
# use them how you see fit
Todo
Add link to where this is used in MVP.
Documentation available at: hexdocs.pm/statuses