Phoenix in action

Phoenix in Action is an example-based book that teaches you to build production-quality web apps. You’ll handle business logic, database interactions, and app designs as you progressively create an online auction site. As you go, you’ll build everything from the core components to the real-time user...

Descripción completa

Detalles Bibliográficos
Otros Autores: Lessel, Geoffrey, author (author), Jurić, Sas̄a, writer of foreword (writer of foreword)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Shelter Island, New York : Manning Publications [2019]
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630699406719
Tabla de Contenidos:
  • Intro
  • Copyright
  • Brief Table of Contents
  • Table of Contents
  • Foreword
  • Preface
  • Acknowledgments
  • About this book
  • About the author
  • About the cover illustration
  • Part 1. Getting started
  • Chapter 1. Ride the Phoenix
  • 1.1. What is Phoenix?
  • 1.2. Elixir and Phoenix vs. the alternatives
  • 1.3. The power of Elixir
  • 1.4. Functional vs. object-oriented programming
  • 1.5. Keep reading
  • Summary
  • Chapter 2. Intro to Elixir
  • 2.1. The basics
  • 2.2. Other idiomatic Elixir language features
  • Summary
  • Chapter 3. A little Phoenix overview
  • 3.1. Follow the data
  • 3.2. Putting it all together
  • Summary
  • Part 2. Diving in deep
  • Chapter 4. Phoenix is not your application
  • 4.1. I thought this book was about Phoenix
  • 4.2. The first steps in building your application
  • 4.3. Next steps
  • Summary
  • Chapter 5. Elixir application structure
  • 5.1. Moving from a single file to an application
  • 5.2. Organizing, compiling, and running your new application
  • 5.3. Using Hex to get external dependencies
  • Summary
  • Chapter 6. Bring in Phoenix
  • 6.1. Installing Phoenix on your system
  • 6.2. Creating a new Phoenix application
  • 6.3. Listing items from the fake repo
  • Summary
  • Chapter 7. Being persistent with a database
  • 7.1. A quick intro to Ecto
  • 7.2. Configuring Ecto
  • 7.3. Preparing Auction to use the database
  • 7.4. Creating, retrieving, and deleting data in the database
  • Summary
  • Chapter 8. Making changes with Ecto.Changeset
  • 8.1. Can't I just ... update?
  • 8.2. Now you can update!
  • Summary
  • Chapter 9. Transforming data in your browser
  • 9.1. Handling new routes in your application
  • 9.2. Viewing the details of a single item
  • 9.3. Creating items through web forms
  • 9.4. Editing items through web forms
  • Summary
  • Chapter 10. Plugs, assigns, and dealing with session data.
  • 10.1. Preparing your application for user registration
  • 10.2. Handling user login and sessions
  • 10.3. Plugs
  • 10.4. Adding site navigation
  • 10.5. Restricting users from certain pages
  • Summary
  • Chapter 11. Associating records and accepting bids
  • 11.1. Creating bids
  • 11.2. Adding associations to the Auction.Bid schema
  • 11.3. Using has_many with items and users
  • 11.4. Listing a user's bids on their profile page
  • 11.5. Some ideas for further improvement
  • Summary
  • Part 3. Those important extras
  • Chapter 12. Using Phoenix channels for real-time communication
  • 12.1. What are Phoenix channels?
  • 12.2. Connecting a user to a channel and a topic
  • 12.3. Sending real-time messages to a user
  • 12.4. Updating all users when a new bid is made
  • Summary
  • Chapter 13. Building an API
  • 13.1. Scoping API requests to a new controller
  • 13.2. Creating the AuctionWeb.Api.ItemController controller and view
  • 13.3. Including related bid and user data
  • Summary
  • Chapter 14. Testing in Elixir and Phoenix
  • 14.1. An introduction to ExUnit
  • 14.2. Setting up tests for Ecto
  • 14.3. Testing Ecto queries in Auction
  • 14.4. Simultaneously writing documentation and tests with doctests
  • 14.5. Writing tests For Phoenix
  • 14.6. What next?
  • Summary
  • Appendix A. Installing Elixir and Phoenix
  • A.1. Installing Elixir
  • A.2. Installing Phoenix
  • Appendix B. More Elixir resources
  • On the web
  • Books
  • Community
  • The general flow of a request as it moves through Phoenix
  • Index
  • List of Figures
  • List of Tables
  • List of Listings.