Nova example with arizona liveview

Hi,

I wanted to follow the arizona example in the nova book

Arizona Fundamentals - The Nova Book,

unfortunately it is a bit out of date.

https://github.com/Taure/arizona_core.git exists no longer, and the interfaces of

GitHub - arizona-framework/arizona: A web framework for Erlang/OTP · GitHub

also have a bit deviated, it seems.

I tried with the versions in the respective .tools-versions files.

Is there a working example somewhere, please?

on a side note, also GitHub - arizona-framework/arizona_example: Showcase for Arizona Framework · GitHub does not work for me at the moment.

Yes. Arizona is now using roadrunner webserver so it is not possible to use with Nova.

I am trying to find some time to update the book.

Good news on this one: Arizona works with Nova again!

The server bits got split out of core into adapters, so Arizona can just sit on Nova’s own listener next to your Nova routes. That’s what arizona_nova does.

I put together a little example too, a link shortener where Nova handles the redirects and an Arizona page shows the click counts going up live.

It’s not on hex yet, so you’d need git deps for now. Would love to hear how it goes if anyone tries it :slightly_smiling_face:

Landed it on hex! Try it out o/

It came out with Arizona 0.4.0, which split the server into adapters. More on that here: Arizona - a web framework for Erlang/OTP - #30 by williamthome

I have now updated the book and should be more compelte also with arizona. Introduction - The Nova Book