Book Image

Phoenix Web Development

By : Brandon Richey
Book Image

Phoenix Web Development

By: Brandon Richey

Overview of this book

Phoenix is a modern web development framework that is used to build API’s and web applications. It is built on Elixir and runs on Erlang VM which makes it much faster than other options. With Elixir and Phoenix, you build your application the right way, ready to scale and ready for the increasing demands of real-time web applications. This book covers the basics of the Phoenix web framework, showing you how to build a community voting application, and is divided into three parts. In the first part, you will be introduced to Phoenix and Elixir and understand the core terminologies that are used to describe them. You will also learn to build controller pages, store and retrieve data, add users to your app pages and protect your database. In the second section you will be able to reinforce your knowledge of architecting real time applications in phoenix and not only debug these applications but also diagnose issues in them. In the third and final section you will have the complete understanding of deploying and running the phoenix application and should be comfortable to make your first application release By the end of this book, you'll have a strong grasp of all of the core fundamentals of the Phoenix framework, and will have built a full production-ready web application from scratch.
Table of Contents (14 chapters)
4
Introducing User Accounts and Sessions

Adding Chat to Your Phoenix Application

When we last left off, we had organized our application and touched on a few of the missing areas of functionality that we really needed to make our application feel a little more finished. Our application is largely functional, and if we were so inclined, we could easily polish and ship this initial pass as a decent MVP (minimally viable product)! Take a moment to pat yourself on the back; getting anything completed can be a very difficult thing to do, and you're already well on your way to launching the next unicorn product! Of course, launching any kind of social app nowadays without something to enable some sort of real-time communication would never fly with investors, so the next thing we'll tackle is integrating chat into the polls. We also have a little bit of minor code cleanup to do as part of our development process...