Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zachallaun/ex_janus
Authorization library for applications using Ecto.
https://github.com/zachallaun/ex_janus
authorization elixir
Last synced: 11 days ago
JSON representation
Authorization library for applications using Ecto.
- Host: GitHub
- URL: https://github.com/zachallaun/ex_janus
- Owner: zachallaun
- Created: 2022-11-26T20:19:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-25T13:08:53.000Z (about 1 month ago)
- Last Synced: 2024-10-11T19:20:03.545Z (27 days ago)
- Topics: authorization, elixir
- Language: Elixir
- Homepage: https://hex.pm/packages/ex_janus
- Size: 230 KB
- Stars: 17
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
[![Hex.pm](https://img.shields.io/hexpm/v/ex_janus.svg)](https://hex.pm/packages/ex_janus) [![Docs](https://img.shields.io/badge/hexdocs.pm-docs-8e7ce6.svg)](https://hexdocs.pm/ex_janus)
Authorization superpowers for applications using `Ecto`.
## Installation
Janus can be installed by adding `ex_janus` to your deps in `mix.exs`:
```elixir
defp deps do
[
{:ex_janus, "~> 0.3.2"}
]
end
```## Documentation
Here are a few places to get started:
- [`Janus` module docs](https://hexdocs.pm/ex_janus/Janus.html)
- [The Basics](https://hexdocs.pm/ex_janus/basics.html) cheatsheet
- [Generated Policy Modules](https://hexdocs.pm/ex_janus/generated_policy_modules.html) - ideas behind `mix janus.gen.policy`## Development
To set up and test `Janus` locally:
```bash
$ git clone https://github.com/zachallaun/ex_janus && cd ex_janus$ mix deps.get
# Set up test database and run tests with code coverage report
$ mix setup
$ mix t
```