Understanding Controllers

In this chapter, we focus on building the controllers and the pieces of the application they touch. Though Phoenix has generators that could generate much of a simple web app from scratch, we’re going to build part of it by hand so we can appreciate how the parts fit together. Before we fire up the generators, let’s talk about how the controller hangs together.

Our application will be called rumbl. When we’re all done, the application will allow us to take videos (hosted elsewhere), and attach comments to them in real time and play them back alongside the comments of other users. Think of it as Mystery Science Theater 3000 meets Twitter. At scale, this application will be tremendously demanding because each user will ...

Get Programming Phoenix 1.4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.