Don't accept the compromise between fast and beautiful: you can have it all. Phoenix creator Chris McCord, Elixir creator Jose Valim, and award-winning author Bruce Tate walk you through building an application that's fast and reliable. At every step, you'll learn from the Phoenix creators not just what to do, but why. Packed with insider insights and completely updated for Phoenix 1.4, this definitive guide will be your constant companion in your journey from Phoenix novice to expert, as you build the next generation of web applications.
Phoenix is the long-awaited web framework based on Elixir, the highly concurrent language that combines a beautiful syntax with rich metaprogramming. The best way to learn Phoenix is to code, and you'll get to attack some interesting problems. Start working with controllers, views, and templates within the first few pages. Build an in-memory context, and then back it with an Ecto database layer, complete with changesets and constraints that keep readers informed and your database integrity intact. Craft your own interactive application based on the channels API for the real-time applications that this ecosystem made famous. Write your own authentication plugs, and use the OTP layer for supervised services. Organize code with modular umbrella projects.
This edition is fully updated for Phoenix 1.4, with a new chapter on using Channel Presence to find out who's connected, even on a distributed application. Use the new generators and the new ExUnit features to organize tests and make Ecto tests concurrent.
This is a book by developers and for developers, and we know how to help you ramp up quickly. Any book can tell you what to do. When you've finished this one, you'll also know why to do it.
What You Need:
To work through this book, you will need a computer capable of running Erlang 18 or higher, Elixir 1.5 or higher, and Phoenix 1.4 or higher. A rudimentary knowledge of Elixir is also highly recommended.
Table of contents
- 1. Introducing Phoenix
Part I. Building with Functional MVC
- 2. The Lay of the Land
- 3. Controllers
- 4. Ecto and Changesets
- 5. Authenticating Users
- 6. Generators and Relationships
- 7. Ecto Queries and Constraints
- 8. Testing MVC
Part II. Writing Interactive and Maintainable Applications
- 9. Watching Videos
- 10. Using Channels
- 11. Observer and Umbrellas
- 12. OTP
- 13. Testing Channels and OTP
- 14. What’s Next?
- Title: Programming Phoenix 1.4
- Release date: October 2019
- Publisher(s): Pragmatic Bookshelf
- ISBN: 9781680502268
You might also like
Designing Distributed Systems
Without established design patterns to guide them, developers have had to build distributed systems from scratch, …
Building Event-Driven Microservices
Organizations today often struggle to balance business requirements with ever-increasing volumes of data. Additionally, the demand …
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …
Building Microservices, 2nd Edition
Distributed systems have become more fine-grained as organizations shift from code-heavy monolithic applications to smaller, self-contained …