An elli webserver backend for nine.
nine_elli
middleware, and utility functions.
rebar3 compile
cd example
rebar3 compile
rebar3 shell
Navigate to localhost:3000. Please see example/README.md
for more details.
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]}]
Apache v2