Isomorphic Go: Learn how to build modern isomorphic web applications using the Go programming language, GopherJS, and the Isomorphic Go toolkit

Kamesh Balasubramanian

  • 出版商: Packt Publishing
  • 出版日期: 2017-12-29
  • 售價: $2,010
  • 貴賓價: 9.5$1,910
  • 語言: 英文
  • 頁數: 516
  • 裝訂: Paperback
  • ISBN: 1788394186
  • ISBN-13: 9781788394185
  • 相關分類: Go 程式語言
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Learning about isomorphic development in Go leads to a unified view of web and back-end development: It extends the remit of a server-side programming language to the browser.

Key Features

  • Learn how to build Isomorphic Go web applications
  • Neatly organize your isomorphic codebase to enhance the maintainability of your application
  • Leverage the same Go code across the web server and the web browser

Book Description

Isomorphic Go is the methodology to create isomorphic web applications using the Go programming language. Isomorphic web applications have the capability to reuse code across environments, increasing the synergy between the web server and the web browser. This book is a hands-on guide that will show you how to build and deploy an Isomorphic Go web application.

Isomorphic Go begins with an in-depth exploration of the benefits provided by the isomorphic web application architecture. You'll be introduced to the Isomorphic Go toolchain, and how it can help you write Go code that functions across environments. You'll learn how to create Go programs in the web browser using GopherJS and how to render isomorphic templates. Then you'll be introduced to end-to-end application routing, use isomorphic handoff to seamlessly transition state from the web server to the web browser, and compose isomorphic forms that have the ability to reuse form validation logic. You'll be exposed to advanced concepts including the implementation of real-time web application functionality with websockets and the creation of reusable components (cogs) that are rendered using the virtual DOM. Finally, you'll see how to deploy an Isomorphic Go web application to a production environment.

What you will learn

  • Create Go programs inside the web browser using GopherJS
  • Render isomorphic templates on both the client side and the server side
  • Perform end-to-end application routing for greater search engine discoverability and an enhanced user experience
  • Implement isomorphic handoff to seamlessly transition state between the web server and the web browser
  • Build real-time web application functionality with websockets
  • Create reusable components (cogs) that are rendered using the virtual DOM
  • Deploy an Isomorphic Go application for production use

Who This Book Is For

This book addresses web developers, who are comfortable with JavaScript and the full web development cycle. You may or may not be experienced in isomorphic development, but should have a basic understanding of Go's syntax.

Table of Contents

  1. Isomorphic Web Applications with Go
  2. Isomorphic Go Toolchain
  3. Go on the Front-End with GopherJS
  4. Isomorphic Templates
  5. End-to-End Routing
  6. Isomorphic Handoff
  7. The Isomorphic Web Forms
  8. Real-Time Web Application Functionality
  9. Cogs - Reusable Components
  10. Testing an Isomorphic Go Web Application
  11. Deploying an Isomorphic Go Web Application
  12. Appendix: Debugging Isomorphic Go

商品描述(中文翻譯)

學習 Go 中的同構開發將導致對網頁和後端開發的統一視角:它將伺服器端程式語言的範疇擴展到瀏覽器。

主要特點
- 學習如何構建同構 Go 網頁應用程式
- 整理您的同構程式碼庫,以增強應用程式的可維護性
- 在網頁伺服器和網頁瀏覽器之間重用相同的 Go 程式碼

書籍描述
Isomorphic Go 是使用 Go 程式語言創建同構網頁應用程式的方法論。同構網頁應用程式具有在不同環境中重用程式碼的能力,增強了網頁伺服器和網頁瀏覽器之間的協同效應。本書是一個實用指南,將向您展示如何構建和部署同構 Go 網頁應用程式。

Isomorphic Go 從深入探討同構網頁應用程式架構所提供的好處開始。您將了解 Isomorphic Go 工具鏈,以及它如何幫助您編寫能在不同環境中運行的 Go 程式碼。您將學習如何使用 GopherJS 在網頁瀏覽器中創建 Go 程式,並如何渲染同構模板。接著,您將了解端到端的應用程式路由,使用同構交接無縫地將狀態從網頁伺服器轉移到網頁瀏覽器,並組合具有重用表單驗證邏輯能力的同構表單。您將接觸到包括使用 websockets 實現即時網頁應用程式功能和創建使用虛擬 DOM 渲染的可重用組件(cogs)等進階概念。最後,您將學習如何將同構 Go 網頁應用程式部署到生產環境。

您將學到的內容
- 使用 GopherJS 在網頁瀏覽器中創建 Go 程式
- 在客戶端和伺服器端渲染同構模板
- 執行端到端的應用程式路由,以提高搜尋引擎的可發現性和增強用戶體驗
- 實現同構交接,無縫地在網頁伺服器和網頁瀏覽器之間轉移狀態
- 使用 websockets 構建即時網頁應用程式功能
- 創建使用虛擬 DOM 渲染的可重用組件(cogs)
- 部署同構 Go 應用程式以供生產使用

本書適合對象
本書針對熟悉 JavaScript 和完整網頁開發週期的網頁開發人員。您可能對同構開發有經驗,也可能沒有,但應該對 Go 的語法有基本的了解。

目錄
1. 使用 Go 的同構網頁應用程式
2. 同構 Go 工具鏈
3. 使用 GopherJS 的前端 Go
4. 同構模板
5. 端到端路由
6. 同構交接
7. 同構網頁表單
8. 即時網頁應用程式功能
9. 可重用組件(cogs)
10. 測試同構 Go 網頁應用程式
11. 部署同構 Go 網頁應用程式
12. 附錄:調試同構 Go