~fancycade/nine_elli

A nine backend for elli
94512f2f — Harley Swick a month ago
Fix link to nine
Update README docs
Add doc to .gitignore

clone

read-only
https://git.sr.ht/~fancycade/nine_elli
read/write
git@git.sr.ht:~fancycade/nine_elli

You can also use your local clone with git send-email.

#nine_elli

An elli webserver backend for nine.

nine_elli middleware, and utility functions.

#Build

rebar3 compile

#Demo

cd example
rebar3 compile
rebar3 shell

Navigate to localhost:3000. Please see example/README.md for more details.

#Usage

At application startup generate the router module by massing in the routes from nine.

nine:compile(#{
    routes => Routes,
    router => example_router,
    generator => nine_elli
})

In your supervisor configure the elli webserver like this:

ElliOpts = [{callback, example_router},
            {port, 3000}],
ChildSpecs = [{example_http, {elli, start_link, [ElliOpts]}, permanent, 5000, worker, [elli]}]

#License

Apache v2