Limit search to available items
Book Cover
E-book
Author Voloz, Mike

Title Phoenix Web Development : Create rich web applications using functional programming techniques with Phoenix and Elixir
Published Birmingham : Packt Publishing, 2018

Copies

Description 1 online resource (398 pages)
Contents Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: A Brief Introduction to Elixir and Phoenix; Introducing IEx and Elixir; What is IEx?; Variables in Elixir; Immutability in Elixir; Understanding the different types in Elixir; Getting more information with the i helper; Getting more information with the h helper; Using IEx and helpers to understand types; Your objects have no power here; Introduction to Phoenix; Installing Phoenix 1.3; Creating a new Phoenix project; Running the Phoenix Mix Task
Running the Phoenix server for the first timePhoenix's default application structure; Configuration files; Assets files; Private files; Tests; Other directories; The most important directory: lib; A note about how data flows in Phoenix; Summary; Chapter 2: Building Controllers, Views, and Templates; Understanding the flow of Phoenix connections; Creating our Social Voting project; Creating a poll controller; Understanding the controller's structure; Building the poll controller; Understanding templates; Passing data to our templates; Writing controller tests
Understanding the code behind testsWriting the poll controller test; Summary; Chapter 3: Storing and Retrieving Vote Data with Ecto Pages; Understanding the role of schemas; Creating a new migration; Creating the Polls table migration; Creating our Options table migration; Creating our Poll schema; Testing our Poll schema; Creating our Option schema; Understanding the gotchas of associations; Understanding the role of contexts; Creating a Votes context; Grabbing a list of data; Understanding Ecto query writing; Hooking up the context to our controller; Creating a new poll
Creating the new action in the controllerCreating our create function; Writing our unit tests; Summary; Chapter 4: Introducing User Accounts and Sessions; Adding user accounts; Designing our user schema; Creating our user schema; Creating our accounts context; Writing our user unit tests; Creating a user signup page; Creating the routes; Creating the controller code (with tests); Setting up the password functionality; Installing Comeonin; Adding Comeonin to the user schema file; Updating our tests; Updating the UI to include password fields; Creating a user login page
Building our create session functionWriting session controller tests; Summary; Chapter 5: Validations, Errors, and Tying Loose Ends; Connecting polls to users; Creating the migration; Modifying the schemas; Fixing broken poll tests; Sending a user ID through the controller; Retrieving data from sessions; Writing our Poll Controller's tests; Restricting access via sessions; Working with validations and errors; Making usernames unique; Writing custom validations; Displaying validation errors in our forms; Summary; Chapter 6: Live Voting with Phoenix; Building channels and topics in Phoenix
Summary The Phoenix web development framework is an object-oriented application development tool written in Elixir. With Elixir and Phoenix, you build your application the right way, ready to scale and ready for the increasing demands of real-time web applications. If you have some knowledge of Elixir, have experience with web frameworks in other ..
Notes Understanding sockets
Print version record
Subject Elixir (Computer program language)
Web applications-Programming
Web site development.
Internet: general works.
Computer programming -- software development.
Web programming.
Computers -- Programming -- General.
Computers -- Web -- General.
Computers -- Web -- Web Programming.
Web Programming.
Programming.
COMPUTERS.
Web.
Elixir (Computer program language)
Web site development
Form Electronic book
Author Richey, Brandon
ISBN 9781787284777
1787284778
1787284190
9781787284197