Description
LiveView Version “0.18.x”. Phoenix 1.7. NOTE! This version of the LiveView content is under development. All of the videos are in, and the book has been updated. We are also working on the itinerary . The updates will tentatively be completed by April 15, 2023.
Phoenix is the web development framework for Elixir, and LiveView is a Phoenix service that allows interactive page flows without JavaScript.
The LiveView project has swept through the Elixir community like wildfire. It takes traditional web development, which focuses on functions that look up back-end data and build text-based HTML markup, and flips the model on its head. Instead, LiveView lets a programmer express a data structure, like a list of books or users, in memory. Then, the user renders the data as a string, changes that data structure via events, automatically rendering any data structure changes.
The end result is that the developer’s focus shifts from things that are difficult, like managing concurrency or IO, to something that programmers are good at, writing small functions to change state.
History
When Chris McCord - creator of Phoenix - moved from a Ruby consultancy to the Elixir community, he was looking for the kind of infrastructure that would let something like LiveView flourish. He wrote a book called Metaprogramming Elixir, and then shifted his attention to the Phoenix framework. After years of building effective infrastructure with startling scalability and reliability, he was finally ready to attack LiveView.
The project was unveiled at ElixirConf in 2019, and released in 2020 as a part of Phoenix 1.5. It has been an open source project from the very beginning, and is rapidly gaining notoriety in many programming communities. The very website you’re working on now is built in LiveView, with only four tiny custom JavaScript functions for analytics and payment processing.