Building Web Apps with Ember.js
اگر شما توسعه دهندهی برنامههای وبی هستید که علاقه مند به ساختن برنامههای SPA مقیاس پذیر هستید، در این کتاب چگونگی ساختن این گونه برنامهها را خواهید آموخت.
در این کتاب چگونگی استفاده از Ember.js که یک فریمورک جاوا اسکریپتی بر اساس الگوی معماری MVC است را خواهید آموخت.
If you’re a web developer interested in building scalable single-page applications—full-stack, browser-based apps that connect to a backend—this practical guide shows you how to use Ember.js, the popular JavaScript framework based on the model-view-controller (MVC) architectural pattern.
Through the course of the book, you’ll learn how to build a prototype Ember application (a musician index called Rock’n’Roll Call), using routers, templates, models, controllers, and views. You’ll also understand how Ember’s convention over configuration approach helps you persist data, build backend technologies, and create widgets for developing production-capable applications that behave like desktop software.
Set up workflow management and boilerplate code creation
Learn how Ember’s “developer ergonomics” help you use less code
Write templates for the book’s prototype with Handlebars.js
Use routers to manage application states without reloading the page
Connect controllers and views with events, and sync data with data-binding
Build an Ember backend with a RESTful API or Ruby on Rails
Use the Ember-Data library to persist data and talk to the backend
Write reusable encapsulated widgets to extend your applications
Chapter 1Introducing Ember.js and Ambitious Web Applications
What Is an “Ambitious Web Application”?
What Is Ember.js?
Why Choose Ember?
What Is Ruby on Rails?
What Is Node.js?
Chapter 2The Basics
Hello, World Wide Web
SimpleHTTPServer: Just Like It Says on the Tin
Data Binding
But Where’s All the Code?
Uh, What’s a Router?
Ember in Action
Wrapping Things Up
Chapter 3 Ember Boilerplate and Workflow
Git
What Is Yeoman?
Using Yo’s Ember Application Generator
Using Bower
Grunt
Debugging with the Ember Inspector for Chrome and Firefox
Wrapping Things Up
Chapter 4Building the RocknRollCall Prototype: Templates
Rock ‘n’ Roll
Starting with HTML
The Basics of Handlebars.js
Variables
Linking with the {{link-to}} Helper
Input with the {{input}} Helper
Lists with the {{each}} Helper
Conditionals with the {{if}} and {{else}} Helpers
Capturing User Interaction with the {{action}} Helper
Bound Attributes
Creating Custom Helpers
Wrapping Things Up
Chapter 5Building the RocknRollCall Prototype: The Router, Routes, and Models
URLs : The Web :: “Saved Game Passwords” : The Nintendo Entertainment System
Routing
Routes
Models
Wrapping Things Up
Chapter 6Building the RocknRollCall Prototype: Controllers, Views, Data Binding, and Events
Controllers
Computed Properties
The Power of Promises and the model Method
Views
Wrapping Things Up
Chapter 7Persisting Data
Not Rolling Our Own Ajax
There Must Be a Better Way
Ember Client-Side Persistence Libraries
An Ember Data Deep Dive
Abstraction Layers: Store, Serializers, and Adapters
Wrapping Things Up
Chapter 8Building an Ember Backend
RESTful Web Service APIs
Why Use Rails?
Wrapping Things Up
Chapter 9Ember Components
The Anatomy of an Ember Component
Wrapping Things Up
Chapter 10Ember Testing
Ember Testing with Ember App Kit, Qunit, and Testem
Testem and QUnit Test Runners
Ember Client-Side Integration Testing
Ember Unit Testing
Wrapping Things Up