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

Designing and implementing our new features

One thing we'll want to get into the habit of doing it, before adding new features, sitting down and taking a nice, thoughtful look at how we'll be designing our features. We want to figure out what the use cases are: why do we want to add these features? What do they add to the experience that makes our application more compelling for the user to use and continue using? What benefits do they add, and just as importantly, what will it cost us to add them?

This isn't just a question of straight-up money or initial time sink, but it is a long-term question as well. How hard will it be to support? How much extra work will we need to do to be able to support this feature? Not only that but is it the kind of feature that is required for the application to succeed? When you sit down and start answering these questions, you can...