0%

Book Description

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 interactions where Phoenix really shines.

Table of Contents

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