Wrapping Up
In this chapter, we accomplished a lot. We built a controller for watching videos and extended our context to provide the necessary domain logic. We then laid some foundation so we can play our videos in YouTube. Finally, we also created friendly URLs. Along the way:
-
You learned to use webpack to support development-time reloading and minimization for production code.
-
We used generators to create an Ecto migration.
-
We used changesets to create slugs.
-
We used protocols to seamlessly build URLs from those new slugs.
In the next chapter, you’re going to reach the long-awaited channels topic. You’ll learn to use Phoenix to build fully interactive features that show off Elixir’s concurrency and consistency. Turn the page, because the energy ...
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