codestirring

codestirring

The Phoenix LiveView Cookbook (self-published)

Hey Elixir Forum,

I’ve written a ebook called the Phoenix LiveView Cookbook which I’ve written in the hopes of distilling the knowledge I’ve gained from using LiveView in production for almost 4 years.

I love LiveView but I also found it really hard to find resources on implementing common patterns found in the web which other frameworks seem to have more available.

I’ve built dozens of side projects and projects at my company where I’m a lead full stack engineer so hopefully I have something I can teach you!

I go through the initial ideas of LiveView, compare it to other frameworks like React and talk about pros and cons, before going through the basics of form validation, nested forms, testing LiveView and components and then dive into recipes like server-side analytics, keeping users in sync in real-time and a bunch more.

The book released today but I’ve already had some really love reception from early readers and I figured this sub might benefit from it.

  1. Introduction

  2. Foreword

  3. What is LiveView

  4. Vs JavaScript: LiveView and React, Elixir and Node

  5. Building a House: An Analogy

  6. Core Knowledge

  7. Prerequisites

  8. Setting Up Your Environment

  9. LiveView Lifecycle and State Management

  10. Templating and Components

  11. Routing and Navigation

  12. Live Sessions

  13. Live Navigation

  14. Forms & Validations

  15. Keeping our users up-to-date in realtime

  16. Testing

  17. Unit Testing LiveViews

  18. Integration tests in LiveView

  19. Testing Components & LiveComponents

  20. What about testing interactions?

  21. Interoping with JavaScript

  22. Alpine.js

  23. LiveView.JS

  24. Testing JavaScript

  25. Common Recipes & How-tos

  26. Virtualised Lists and Infinite Scroll

  27. Real-time Search with ETS

  28. Serverside Analytics

  29. Asynchronous Task Handling

  30. Triggering CSS animations from the server

  31. Authorisation & Access Limitation

  32. Third-party Libraries you should know

  33. Feature Flagging

  34. Background Job Processing

  35. Administration

  36. Time/Data Parsing & Manipulation

There’s a short free chapter to get an idea of it if you’re not sure of purchasing the whole book and there’s a 10% off code here if you decided it was something for you!

Discount code: A3MDY2OA

The book is available here.

I’m also planning on updating it over time as people request more sections and ideas to expand upon so please provide any feedback on how I can improve it and I’ll do my best!

Most Liked

codestirring

codestirring

Thank you so much Cless, so happy that you’re enjoying the content!

Would you be happy for me to quote you on the website?

Nefcairon

Nefcairon

Hello,

Which LiveView version is used in your book and are there any plans to update it?

Where Next?

Popular in Books Top

AstonJ
by Saša Jurić Elixir in Action teaches you to apply the new Elixir programming language to practical problems associated with scalabilit...
New
AstonJ
by Wolfgang Loder Learn and understand Erlang and Elixir and develop a working knowledge of the concepts of functional programming that...
New
CinderellaMan
Hands-on Elixir & OTP: Cryptocurrency Trading Bot by Kamil Skowron Want to learn Elixir & OTP by creating a real-world project...
New
AstonJ
By Simon St. Laurent, J. David Eisenberg Elixir is an excellent language if you want to learn about functional programming, and with thi...
New
PragmaticBookshelf
Tony Hammond Series editor: Bruce A. Tate @redrapids Developmental editor Jacquelyn Carter @jkcarter Data is everywhere—it’s just not ...
New
kokolegorille
by Ulisses Almeida Elixir’s straightforward syntax and this guided tour give you a clean, simple path to learn modern functional program...
New
slashdotdash
I’m working on a CQRS/ES and Phoenix book for those interested in building an event driven application using Elixir. The full ...
New
mchean
By @emadb OVERVIEW Author Emanuele DelBono guides readers along the first steps of mastering the Elixir programming language in Elixi...
New
peerreynders
Don’t forget you can get 35% off the ebook with your forum discount, use code ‘devtalk.com’ :023: Available in beta now
New
collegeimprovements
by @whatyouhide and @idlehands Elixir offers new paradigms, and challenges you to test in unconventional ways. Start with ExUnit: almost...
New

Other popular topics Top

danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29377 241
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
jaysoifer
Is there a way to rollback a specific migration and only that one (“skipping” all the other ones)? Would mix ecto.rollback -v 200809061...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New

We're in Beta

About us Mission Statement