Skip to content

Simple implementation of prevalence in Elixir, this project is based on prevayler project (https://github.com/jsampson/prevayler.git).

License

Notifications You must be signed in to change notification settings

agnaldo4j/prevayler_iex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prevayler_iex

Build Status Deps Status Inline docs Coverage Status hex.pm version Ebert

“You can sell your time, but you can never buy it back. So the price of everything in life is the amount of time you spend on it.” @yanaga

Important

This lib requires Erlang 19 or newer. Because I use

:os.system_time(:nanosecond)

Installation

If available in Hex, the package can be installed by adding prevayler_iex to your list of dependencies in mix.exs:

def deps do
  [{:prevayler_iex, "~> 0.1.7"}]
end

Add application to start

def application do
    [applications: [:prevayler_iex]]
  end

And configure database location, if you don't change this are the default config

config :prevayler_iex, Prevalent.Journaling,
       snapshot_path: "db/snapshot",
       commands_path: "db/commands"

You can see how it works in this file

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/prevayler_iex.

About

Simple implementation of prevalence in Elixir, this project is based on prevayler project (https://github.com/jsampson/prevayler.git).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages