Skip to content
/ statuses Public

๐Ÿ“ A collection of statuses for use in our various apps.

License

Notifications You must be signed in to change notification settings

dwyl/statuses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

81 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

statuses

Elixir Build Status Dart Build Status codecov.io Hex.pm pub package contributions welcome HitCount

Why?

We found ourselves repating statuses in various projects. e.g: auth/init/statuses.ex
So we decided to "DRY" it and make this single-feature micro-package we can reuse.

What?

statuses.json is a maintainable list of status structs 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. It's Open Source so that anyone using our Apps can view and contribute to the list.

How?

Elixir

Installation

Add statuses to your dependencies in mix.exs:

def deps do
  [
    {:statuses, "~> 1.1.1"},
  ]
end

Usage

statuses = Statuses.get_statuses()
# use them how you see fit

Documentation available at: hexdocs.pm/statuses

Dart

Installation

You can run the following command to install the dependency.

flutter pub add statuses

Alternatively, add statuses to your dependencies in pubspec.yml:

dependencies:
  statuses: ^1.0.0

Usage

final statusesArray = Statuses.list()
# use them how you see fit

Documentation available at: pub.dev/packages/statuses