Home Page Icon
Home Page
Table of Contents for
On the web
Close
On the web
by Geoffrey Lessel
Phoenix in Action
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
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Appendix B. More Elixir resources
Next
Next Chapter
Books
On the web
Elixir’s own Getting Started guide:
https://elixir-lang.org/getting-started/introduction.html
Elixir’s online documentation:
https://hexdocs.pm/elixir/
Elixir School:
https://elixirschool.com/en/
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset