Phoenix in Action / Phoenix в действии Год издания: 2019 Автор: Lessel Geoffrey / Лессел Джеффри Издательство: Manning ISBN: 9781617295041 Язык: Английский Формат: PDF/epub Качество: Издательский макет или текст (eBook) Интерактивное оглавление: Да Количество страниц: 337 Описание: Covers Phoenix 1.4 Phoenix is a modern web framework built for the Elixir programming language. Elegant, fault-tolerant, and performant, Phoenix is as easy to use as Rails and as rock-solid as Elixir's Erlang-based foundation. Phoenix in Action builds on your existing web dev skills, teaching you the unique benefits of Phoenix along with just enough Elixir to get the job done. about the technology Modern web applications need to be efficient to develop, lightning fast, and unfailingly reliable. Phoenix, a web framework for the Elixir programming language, delivers on all counts. Elegant and intuitive, Phoenix radically simplifies the dev process. Built for concurrency, Phoenix channels make short work of developing real-time applications. And as for reliability, Phoenix apps run on the battle-tested Erlang VM, so they’re rock solid! what's inside Functional programming in a web environment An introduction to Elixir Database interactions with Ecto Real-time communication with channels about the reader For web developers familiar with a framework like Rails or ASP.NET. No experience with Elixir or Phoenix required. about the book 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.
Примеры страниц
Оглавление
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
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum