Erly A URL shortening service backed by OTP and Mnesia.
The first thing you have to do is to compile all the Erlang files using rebar
.
$ ./rebar get-deps compile
You can use erly as a dependency in your rebar.config:
{deps , [
{erly, ".*", {git, "https://github.com/dtykocki/erly.git", {tag, "0.0.1"}}}
]}.
$ erl -pa deps/*/ebin -pa ebin
1> application:start(mnesia).
ok
2> application:start(erly).
ok
1> erly:create_url("www.google.com").
{ok,{url,3,"www.google.com","68PXaMWx"}}
2> erly:lookup_url("68PXaMWx").
{ok,{url,3,"www.google.com","68PXaMWx"}}
This software is licensed under the MIT license.