Pro Single Page Application Development: Using Backbone.js and ASP.NET
暫譯: 專業單頁應用程式開發:使用 Backbone.js 和 ASP.NET

Gil Fink

  • 出版商: Apress
  • 出版日期: 2014-05-08
  • 售價: $2,280
  • 貴賓價: 9.5$2,166
  • 語言: 英文
  • 頁數: 324
  • 裝訂: Paperback
  • ISBN: 1430266732
  • ISBN-13: 9781430266730
  • 相關分類: .NETASP.NET
  • 海外代購書籍(需單獨結帳)

商品描述

One of the most important and exciting trends in web development in recent years is the move towards single page applications, or SPAs. Instead of clicking through hyperlinks and waiting for each page to load, the user loads a site once and all the interactivity is handled fluidly by a rich JavaScript front end. If you come from a background in ASP.NET development, you’ll be used to handling most interactions on the server side. Pro Single Page Application Development will guide you through your transition to this powerful new application type.

The book starts in Part I by laying the groundwork for SPA development. You’ll master some JavaScript techniques that will come in useful later on, and get to know the building blocks of a single page application, including modules, routing and MV* frameworks.

In Part II, you’ll build the client for your application. This is where the magic happens, as the authors take you through the process step by step. Backbone.js is the ideal library for demonstrating SPA development in practice, but you can apply the same principles with other frameworks in your future applications. Part III takes you through the process of building the server side of your application using ASP.NET Web API, and hooking up the two parts of your application to create a working whole.

SPA development also comes with its own particular challenges, including tracking history, user interface performance, and how to handle search engine optimization. In the final chapters, the authors guide you through some of these issues and advanced techniques and finish by showing you how to deploy your application. As SPAs become the de facto standard of web application development, the in-depth Pro Single Page Application Development will be your one-stop shop for creating fluid, modern applications on the web.

What you’ll learn

  • Reasons to master single page application development
  • SPA architecture and key concepts
  • Mastering modular JavaScript development techniques
  • Meet the popular Backbone.js library and how to use it to build an SPA
  • Create a back end with ASP.NET Web API and consume it from your SPA
  • How to unit test and performance tune your application
  • Overcome the difficulties of search engine optimization in single page applications

Who this book is for

This book will suit professional web developers familiar with HTML and JavaScript. Readers will need experience with .NET and C# in order to follow along with Part III, which covers back end development with ASP.NET Web API.

Table of Contents

Part I: The Road to Single Page Application Development

Chapter 1: Introducing Single Page Applications (SPAs)

Chapter 2: JavaScript for SPAs

Chapter 3: Modular JavaScript Development

Chapter 4: SPA Concepts and Architecture

Part II: Building the Front End

Chapter 5: Getting Started with Backbone.js

Chapter 6: Creating a Single Page Application Step by Step

Part III: Building the Back End

Chapter 7: Creating a Back-End Service with ASP.NET Web API

Chapter 8: Implementing HTTP with ASP.NET Web API

Chapter 9: Communication Between Front and Back End

Part IV: Advanced SPA Topics

Chapter 10: JavaScript Unit Testing

Chapter 11: SPA Performance Tuning

Chapter 12: Search Engine Optimization for SPAs

Chapter 13: Deploying Your SPA

商品描述(中文翻譯)

近年來,網頁開發中最重要且令人興奮的趨勢之一是向單頁應用程式(Single Page Applications,簡稱 SPA)的轉變。用戶不再需要點擊超連結並等待每個頁面加載,而是一次性加載整個網站,所有互動都由豐富的 JavaScript 前端流暢處理。如果您來自 ASP.NET 開發的背景,您將習慣於在伺服器端處理大多數互動。《Pro Single Page Application Development》將指導您過渡到這種強大的新應用程式類型。

本書在第一部分開始時為 SPA 開發奠定基礎。您將掌握一些在後面會用到的 JavaScript 技巧,並了解單頁應用程式的基本組件,包括模組、路由和 MV* 框架。在第二部分,您將為您的應用程式構建客戶端。這裡是魔法發生的地方,作者將一步一步帶您完成這個過程。Backbone.js 是展示 SPA 開發實踐的理想庫,但您可以在未來的應用程式中使用其他框架應用相同的原則。第三部分將帶您通過使用 ASP.NET Web API 構建應用程式的伺服器端的過程,並將應用程式的兩個部分連接起來,創建一個完整的工作系統。SPA 開發也面臨著特定的挑戰,包括歷史追蹤、用戶界面性能以及如何處理搜尋引擎優化。在最後幾章中,作者將指導您解決這些問題和高級技術,並最後展示如何部署您的應用程式。隨著 SPA 成為網頁應用程式開發的事實上標準,深入的《Pro Single Page Application Development》將成為您創建流暢、現代化網頁應用程式的一站式商店。

您將學到什麼



  • 掌握單頁應用程式開發的理由

  • SPA 架構和關鍵概念

  • 掌握模組化 JavaScript 開發技術

  • 認識流行的 Backbone.js 庫及其在 SPA 中的使用方法

  • 使用 ASP.NET Web API 創建後端並從您的 SPA 中使用它

  • 如何對您的應用程式進行單元測試和性能調優

  • 克服單頁應用程式中的搜尋引擎優化困難


本書適合誰


本書適合熟悉 HTML 和 JavaScript 的專業網頁開發人員。讀者需要具備 .NET 和 C# 的經驗,以便跟隨第三部分的內容,該部分涵蓋了使用 ASP.NET Web API 的後端開發。


目錄


第一部分:單頁應用程式開發之路

第 1 章:介紹單頁應用程式(SPAs)


第 2 章:SPA 的 JavaScript


第 3 章:模組化 JavaScript 開發


第 4 章:SPA 概念和架構


第二部分:構建前端

第 5 章:開始使用 Backbone.js


第 6 章:逐步創建單頁應用程式


第三部分:構建後端

第 7 章:使用 ASP.NET Web API 創建後端服務


第 8 章:使用 ASP.NET Web API 實現 HTTP


第 9 章:前後端之間的通信


第四部分:高級 SPA 主題

第 10 章:JavaScript 單元測試


第 11 章:SPA 性能調優


第 12 章:單頁應用程式的搜尋引擎優化


第 13 章:部署您的 SPA