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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access