Phoenix Web Development: Create rich web applications using functional programming techniques with Phoenix and Elixir
暫譯: Phoenix 網頁開發:使用 Phoenix 和 Elixir 的函數式程式設計技術創建豐富的網頁應用程式

Brandon Richey

  • 出版商: Packt Publishing
  • 出版日期: 2018-04-27
  • 售價: $1,830
  • 貴賓價: 9.5$1,739
  • 語言: 英文
  • 頁數: 406
  • 裝訂: Paperback
  • ISBN: 1787284190
  • ISBN-13: 9781787284197
  • 相關分類: Functional-programming
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Learn to build a high-performance functional prototype of a voting web application from scratch using Elixir and Phoenix
Key Features
  • Build a strong foundation in Functional-Programming techniques while learning to build compelling web applications
  • Understand the Elixir Concurrency and parallelization model to build high-performing blazingly fast applications
  • Learn to test, debug and deploy your web applications using Phoenix framework
Book DescriptionPhoenix is a modern web development framework that is used to build API's andweb applications. It is built on Elixir and runs on Erlang VM whichmakes it much faster than other options. With Elixir and Phoenix, youbuild your application the right way, ready to scale and ready for theincreasing demands of real-time web applications.
This book covers the basics of the Phoenix web framework, showing you how to build acommunity voting application, and is divided into three parts. In thefirst part, you will be introduced to Phoenix and Elixir and understandthe core terminologies that are used to describe them. You will alsolearn to build controller pages, store and retrieve data, add users toyour app pages and protect your database. In the second section youwill be able to reinforce your knowledge of architecting real timeapplications in phoenix and not only debug these applications but alsodiagnose issues in them. In the third and final section you will havethe complete understanding of deploying and running the phoenixapplication and should be comfortable to make your first applicationrelease
By the end of this book, you'll have a strong grasp of all of the core fundamentals of the Phoenix framework, and will have built a full production-ready web application from scratch.
What you will learn
  • Learn Phoenix Framework fundamentals and v1.3's new application structure
  • Build real-time applications with channels and presence
  • Utilize GenServers and other OTP fundamentals to keep an application stable
  • Track users as they sign in and out of chat with Phoenix's built-in presence functionality
  • Write your own database interaction code that is safe, bug-free, and easy to work with
  • Explore testing and debugging methodologies to understand a real software development lifecycle for a Phoenix application
  • Deploy and run your Phoenix application in production
Who this book is forThis book is for people with a basic knowledge of Elixir, who want to startbuilding web applications. Prior experience with web technologies isassumed.
Table of Contents
  1. Introducing Elixir and Phoenix Pages
  2. Building Our Vote Controllers
  3. Storing and Retrieving Vote Data with Ecto Pages
  4. Adding Users to our App Pages
  5. Protecting our Database from Bad Data Pages
  6. Live-Voting with Channels and Javascript
  7. Writing the Javascript to Handle Channels
  8. Adding Chat to Our App
  9. Caching Vote Data with ETS
  10. Understanding the Elixir Concurrency Model
  11. Writing Our Search Genserver
  12. Deploying our Application

商品描述(中文翻譯)

學習如何從零開始使用 Elixir 和 Phoenix 建立高效能的投票網頁應用程式原型
主要特點


  • 在學習建立引人入勝的網頁應用程式的同時,打下堅實的函數式程式設計技術基礎

  • 理解 Elixir 的併發和平行化模型,以建立高效能的快速應用程式

  • 學習如何使用 Phoenix 框架測試、除錯和部署你的網頁應用程式

書籍描述Phoenix 是一個現代的網頁開發框架,用於構建 API 和網頁應用程式。它建立在 Elixir 之上,運行於 Erlang VM,使其比其他選擇更快。使用 Elixir 和 Phoenix,你可以以正確的方式構建應用程式,準備擴展並應對實時網頁應用程式日益增長的需求。
本書涵蓋了 Phoenix 網頁框架的基礎知識,展示了如何構建社區投票應用程式,並分為三個部分。在第一部分中,你將被介紹到 Phoenix 和 Elixir,並理解用於描述它們的核心術語。你還將學習如何構建控制器頁面、存儲和檢索數據、將用戶添加到你的應用頁面以及保護你的數據庫。在第二部分中,你將能夠加強在 Phoenix 中架構實時應用程式的知識,不僅能夠除錯這些應用程式,還能診斷其中的問題。在第三部分和最後一部分中,你將全面理解如何部署和運行 Phoenix 應用程式,並應該能夠舒適地進行你的第一個應用程式發布。
在本書結束時,你將對 Phoenix 框架的所有核心基礎知識有深入的了解,並將從零開始構建一個完整的生產就緒網頁應用程式。
你將學到什麼

  • 學習 Phoenix 框架的基本原理和 v1.3 的新應用結構

  • 使用通道和存在功能構建實時應用程式

  • 利用 GenServers 和其他 OTP 基礎知識保持應用程式穩定

  • 使用 Phoenix 的內建存在功能追蹤用戶的登入和登出

  • 編寫安全、無錯誤且易於使用的數據庫交互代碼

  • 探索測試和除錯方法,以理解 Phoenix 應用程式的真實軟體開發生命週期

  • 在生產環境中部署和運行你的 Phoenix 應用程式

本書適合對 Elixir 有基本了解的人,想要開始構建網頁應用程式。假設讀者對網頁技術有先前經驗。
目錄

  1. 介紹 Elixir 和 Phoenix 頁面

  2. 構建我們的投票控制器

  3. 使用 Ecto 頁面存儲和檢索投票數據

  4. 將用戶添加到我們的應用頁面

  5. 保護我們的數據庫免受不良數據影響的頁面

  6. 使用通道和 JavaScript 進行實時投票

  7. 編寫處理通道的 JavaScript

  8. 將聊天功能添加到我們的應用中

  9. 使用 ETS 快取投票數據

  10. 理解 Elixir 的併發模型

  11. 編寫我們的搜尋 Genserver

  12. 部署我們的應用程式