Productive |> Reliable |> Fast
Chris McCord / Bruce Tate …
Overview
Don’t accept the compromise between fast and beautiful: you can have it all. Phoenix creator Chris McCord, Elixir creator José 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, 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.
contents
Introduction
Building with Functional MVC
The Lay of the Land
Simple Functions
Installing Your Development Environment
Creating a Throwaway Project
Building a Feature excerpt
Going Deeper: The Request Pipeline
Wrapping Up
Controllers, Views and Templates
The Controller
Creating Some Users
Building a Controller
Coding Views
Using Helpers
Showing a User
Wrapping Up
Ecto and Changesets
Understanding Ecto
Defining the User Schema
Using the Model to Add Data
Building Forms
Creating Resources
Wrapping Up
Authenticating Users
Preparing for Authentication
Managing Registration Changesets
Creating Users
The Anatomy of a Plug excerpt
Writing an Authentication Plug
Implementing Login and Logout
Presenting User Account Links
Wrapping Up
Ecto Queries excerpt
Exploring Ecto in the Console
Mapping to Models
Diving Deeper into the Query API
Fragments
Using Generators
Wrapping Up
Adding Relationships and Constraints
Preparing Generated Code for Associations
Adding Categories
Constraints
Wrapping Up
Writing Interactive and Maintainable Applications
Watching Videos
Watching Videos
Adding JavaScript
Creating Slugs
Wrapping Up
Using Channels
A Channels Overview
The Transport Layer
Joining Channels
Channel Messages
Annotating Videos
Socket Authentication
Persisting Annotations
Mix and OTP
Testing