<commit_before>---
author: <NAME>
author_link: https://github.com/sophiedebenedetto
categories: til
date: 2018-12-19
layout: post
title:  Walk-Through of Phoenix Live View
excerpt: >
  Learn how to use Phoenix Live View for real-time features without complicated JS frameworks.
---
It's here! Phoenix Live View leverages server-rendered HTML and Phoenix's native WebSocket tooling so you can build fancy real-time features without all that complicated JavaScript. If you're sick to death of writing JS (I had a bad day with Redux, don't ask), then this is the library for you!

Phoenix Live View is brand brand new so I thought I'd provide a short write-up of a super simple demo I built for anyone looking to get up and running. Keep in mind that the library is still a release candidate and as such, is subject to change.

## What is Live View?

Chris McCord said it best in his [announcement](https://dockyard.com/blog/2018/12/12/phoenix-liveview-interactive-real-time-apps-no-need-to-write-javascript) back in December:

> Phoenix LiveView is an exciting new library which enables rich, real-time user experiences with server-rendered HTML. LiveView powered applications are stateful on the server with bidrectional communication via WebSockets, offering a vastly simplified programming model compared to JavaScript alternatives.

## Kill Your JavaScript
<commit_msg>fix date (#1747)<commit_after>---
author: <NAME>
author_link: https://github.com/sophiedebenedetto
categories: til
date: 2019-02-19
layout: post
title:  Walk-Through of Phoenix Live View
excerpt: >
  Learn how to use Phoenix Live View for real-time features without complicated JS frameworks.
---
It's here! Phoenix Live View leverages server-rendered HTML and Phoenix's native WebSocket tooling so you can build fancy real-time features without all that complicated JavaScript. If you're sick to death of writing JS (I had a bad day with Redux, don't ask), then this is the library for you!

Phoenix Live View is brand brand new so I thought I'd provide a short write-up of a super simple demo I built for anyone looking to get up and running. Keep in mind that the library is still a release candidate and as such, is subject to change.

## What is Live View?

<NAME> said it best in his [announcement](https://dockyard.com/blog/2018/12/12/phoenix-liveview-interactive-real-time-apps-no-need-to-write-javascript) back in December:

> Phoenix LiveView is an exciting new library which enables rich, real-time user experiences with server-rendered HTML. LiveView powered applications are stateful on the server with bidrectional communication via WebSockets, offering a vastly simplified programming model compared to JavaScript alternatives.

## Kill Your JavaScript

{'fraction_non_alphanumeric': 0.0624315443592552, 'fraction_numerical': 0.013143483023001095, 'mean_word_length': 4.637860082304527, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5548490', 'n_tokens_mistral': 744, 'n_tokens_neox': 690, 'n_words': 373}