Enterprise Web Development. Building HTML5 Applications: From Desktop to Mobile - Helion
ISBN: 978-14-493-5705-4
stron: 642, Format: ebook
Data wydania: 2014-07-02
Księgarnia: Helion
Cena książki: 135,15 zł (poprzednio: 157,15 zł)
Oszczędzasz: 14% (-22,00 zł)
If you want to build your organization’s next web application with HTML5, this practical book will help you sort through the various frameworks, libraries, and development options that populate this stack. You’ll learn several of these approaches hands-on by writing multiple versions of a sample web app throughout the book, so you can determine the right strategy for your enterprise.
What’s the best way to reach both mobile and desktop users? How about modularization, security, and test-driven development? With lots of working code samples, this book will help web application developers and software architects navigate the growing number of HTML5 and JavaScript choices available. The book’s sample apps are available at http://savesickchild.org.
- Mock up the book’s working app with HTML, JavaScript, and CSS
- Rebuild the sample app, first with jQuery and then Ext JS
- Work with different build tools, code generators, and package managers
- Build a modularized version of the app with RequireJS
- Apply test-driven development with the Jasmine framework
- Use WebSocket to build an online auction for the app
- Adapt the app for both PCs and mobile with responsive web design
- Create mobile versions with jQuery Mobile, Sencha Touch, and PhoneGap
Osoby które kupowały "Enterprise Web Development. Building HTML5 Applications: From Desktop to Mobile", wybierały także:
- The HTML and CSS Workshop 106,79 zł, (29,90 zł -72%)
- HTML5. Kurs video. Poziom pierwszy. Programowanie dla początkujących webmasterów 89,00 zł, (26,70 zł -70%)
- Tworzenie gier w języku HTML5 dla profesjonalistów. Wydanie II 67,42 zł, (20,90 zł -69%)
- HTML 5. Kurs video. Poziom drugi. Tworzenie profesjonalnych stron WWW 89,00 zł, (35,60 zł -60%)
- Sass od podstaw. Kurs video. Budowa kompleksowej strony w oparciu o metodologię BEM 47,93 zł, (22,05 zł -54%)
Spis treści
Enterprise Web Development. Building HTML5 Applications: From Desktop to Mobile eBook -- spis treści
- Enterprise Web Development
- Preface
- Whats an Enterprise Application?
- Why the Authors Wrote This Book
- Who This Book Is For
- What This Book Is and Why Its Important
- Introducing the Save The Child Application
- Is This Even an Enterprise App?
- How We Are Going to Build This App
- The Goals of the Book
- Technologies Used in This Book
- How the Book Is Organized
- Conventions Used in This Book
- The Source Code for the Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- Introduction
- Moving from DHTML to HTML5
- Developing in HTML5
- Challenges of the Enterprise Developer
- Summary
- I. Building Your Application
- 1. Mocking Up the Save The Child Application
- Considering Mobile First
- Introducing Balsamiq Mockups
- The Project Owner Talks to a Web Designer
- Creating First Mockups
- Turning Mockups into a Prototype
- Single-Page Applications
- Running Code Examples from WebStorm
- Our First Prototype
- Our Main Page JavaScript
- Where to put JavaScript
- The CSS of our main page
- The Footer Section
- The Donate Section
- Assigning function handlers: take 1
- Assigning function handlers: take 2
- Adding Video
- Adding the HTML5 Video Element
- Embedding YouTube Videos
- Adding Geolocation Support
- Geolocation Basics
- Integration with Google Maps
- Browser Feature Detection with Modernizr
- Search and Multimarkers with Google Maps
- Adding multiple markers on the map
- Summary
- 2. Using Ajax and JSON
- Understanding Ajax
- Understanding JSON
- Working with Ajax
- Retrieving Data from the Server
- Ajax: Good and Bad
- Populating States and Countries from HTML Files
- Using JSON
- Populating States and Countries from JSON Files
- Using Arrays in JSON
- Loading Charity Events by Using Ajax and JSON
- Using JSON in CMS
- Handling JSON in Java
- Compressing JSON
- Adding Charts to Save The Child
- Adding a Chart with the Canvas Element
- Adding a Chart by Using SVG
- Loading Data from Other Servers by Using JSONP
- Beer and JSONP
- Summary
- 3. Introducing the jQuery Library
- Getting Started with jQuery
- Hello World
- Using Selectors and Filters
- Testing jQuery Code with JSFiddle
- Filtering Elements
- Handling Events
- Attaching Event Handlers and Elements by Using the Method on()
- Delegating Events
- Using Ajax with jQuery
- Handy Shorthand Methods
- Programming Save The Child by Using jQuery
- Login and Donate
- Loading HTML States and Countries by Using jQuery Ajax
- Loading JSON States and Countries by Using jQuery Ajax
- Submitting the Donate Form
- Manual form serialization
- Using jQuery Plug-ins
- Validating the Donate Form by Using a Plug-in
- Adding an Image Slider
- Summary
- Getting Started with jQuery
- 1. Mocking Up the Save The Child Application
- II. Enterprise Considerations
- 4. Developing Web Applications in the Ext JS Framework
- Exploring JavaScript Frameworks
- Choosing to Use Ext JS
- Downloading and Installing Ext JS
- Becoming Familiar with Ext JS and Tooling
- Creating the First Version of Hello World
- Generating Applications with the Sencha CMD Tool
- Choosing Which Ext JS Distribution to Use
- Declaring, Loading, and Instantiating Classes
- xtype: An efficient way to create class instances
- Supporting multiple inheritance by uisng mixins
- Best Practice: MVC
- Models and stores
- Controllers and views
- Exploring a Components Life Cycle
- Components as containers
- Working with Events
- Specifying Layouts
- Setting proportional layouts by using the flex property
- Developing Save The Child with Ext JS
- Setting Up the Eclipse IDE and Apache Tomcat
- Apache Tomcat
- Dynamic web projects and Ext JS
- Running the Top Portion of the Save The Child UI
- Completing Save The Child
- Adding the login box
- Adding the video
- Adding the maps
- Adding the chart and table panels
- Adding a footer
- Building a production version of Save The Child
- Setting Up the Eclipse IDE and Apache Tomcat
- Summary
- 5. Selected Productivity Tools for Enterprise Developers
- Using Node.js, V8, and npm
- Automating Everything with Grunt
- Exploring the Simplest Gruntfile
- Using Grunt to Run JSHint Checks
- Watching for the File Changes
- Using Bower
- Using Yeoman
- Using Ext JS and CDB for Productive Enterprise Web Development
- Ext JS MVC Application Scaffolding
- Generating a CRUD Application
- Data Pagination
- Summary
- 6. Modularizing Large-Scale JavaScript Projects
- Understanding Modularization Basics
- Exploring Roads to Modularization
- The Module Pattern
- CommonJS
- Asynchronous Module Definition
- Universal Module Definition
- ECMAScript 6 Modules
- ES6 Module Transpiler
- Dicing the Save The Child Application into Modules
- Inside the RequireJS Configuration: config.js
- Writing AMD Modules
- Loading Modules On Demand
- Using RequireJS Plug-ins
- Using RequireJS Optimizer
- Loosely Coupled InterModule Communications with Mediator
- Summary
- 7. Test-Driven Development with JavaScript
- Why Test?
- Testing Basics
- Unit Testing
- Integration Testing
- Functional Testing
- Load Testing
- Apache Benchmark
- jMeter
- PhantomJS
- Test-Driven Development
- Implementing TDD by Using QUnit
- Setting up Grunt with QUnit
- Behavior-Driven Development with Jasmine
- Setting up Grunt with Jasmine
- Exploring Jasmine basics
- Specification setup
- Custom matchers
- Spies
- Multibrowser Testing
- Installation
- Testem configuration file
- Running tests
- Testing the DOM
- Implementing TDD by Using QUnit
- Building Save The Child with TDD
- Harnessing the ExtJS Application
- Testing the Models
- Testing the Controllers
- Testing the Views
- Setting Up the IDE for TDD
- Summary
- 8. Upgrading HTTP to WebSocket
- Using HTTP for Near Real-Time Applications
- Polling
- Long Polling
- HTTP Streaming
- Implementing Server-Sent Events
- Introducing the WebSocket API
- The WebSocket Interface
- The Client-Side API
- WebSocket handshake
- WebSocket frame anatomy
- The heartbeats
- Data frames
- Closing the connection
- Using WebSocket Frameworks
- The Portal
- Atmosphere
- Choosing the Format for Application-Level Messages
- CSV
- XML
- JSON
- Google Protocol Buffers
- Using WebSocket with Proxies
- Adding an Auction to Save The Child
- Monitoring WebSocket Traffic by Using Chrome Developer Tools
- Sniffing WebSocket Frames by Using Wireshark
- Creating the Save The Child Auction Protocol
- Summary
- Using HTTP for Near Real-Time Applications
- 9. Introduction to Web Application Security
- HTTP versus HTTPS
- Authentication and Passwords
- Basic and Digest Authentication
- Single Sign-on
- Save The Child and SSO
- Handling Passwords
- Authorization
- OAuth-Based Authentication and Authorization
- Federated Identity with OpenID Connect and JSON Web Tokens
- OAuth 2.0 Main Actors
- Save The Child and OAuth
- Public authorization servers
- Private authorization servers
- Top Security Risks
- Injection
- Cross-Site Scripting
- Regulatory Compliance and Enterprise Security
- Summary
- 4. Developing Web Applications in the Ext JS Framework
- III. Responsive Web Design and Mobile Devices
- 10. Responsive Design: One Site Fits All
- One or Two Versions of Code?
- How Many User Agents Are There
- Back to Mockups
- CSS Media Queries
- How Many Breakpoints?
- Fluid Grids
- Moving Away from Absolute Sizing
- Window as a Grid
- Responsive CSS: The Good News
- Making Save The Child Responsive
- Fluid Media
- Summary
- One or Two Versions of Code?
- 11. jQuery Mobile
- Obtaining jQuery Mobile
- Organizing the Code
- Seeing How It Looks on Mobile Devices
- Styling in jQuery Mobile
- Adding Page Navigation
- Multipage template
- Single-page template
- Multipage or single-page template
- Adding Persistent Toolbars
- Programmatic navigation
- Using jQuery Mobile for Save The Child
- Prototyping the Mobile Version
- Project Structure and Navigation
- Selected Code Fragments
- Grid layouts
- Control groups
- Drop-downs and collapsibles
- List views
- Adding JavaScript
- Summary
- 12. Sencha Touch
- Introducing Sencha Touch
- Performing Code Generation and Distribution
- Microloader and configurations
- The code of Hello World
- Constructing the UI
- Containers
- Layouts
- Events
- Performing Code Generation and Distribution
- Using Sencha Touch for Save The Child
- Building the Application
- The Application Object
- The Main View
- Controller
- Other Views in Save The Child
- LoginForm
- DonateForm
- Charts
- Media
- Maps
- Stores and Models
- Working with Landscape Mode
- Comparing jQuery Mobile and Sencha Touch
- Introducing Sencha Touch
- 13. Hybrid Mobile Applications
- Native Applications
- Native versus Web Applications
- Hybrid Applications
- Cordova and PhoneGap
- Titanium
- The Bottom Line
- Introduction to the PhoneGap Workflows
- Creating One More Hello World
- Testing Applications on iOS Devices
- Installing More Local SDKs
- Using the Adobe PhoneGap Build Service
- Distributing Mobile Applications
- Save The Child with PhoneGap
- Using PhoneGap to Package Any HTML5 Application
- Adding Camera Access to Save The Child
- Providing Sever-Side Support for Photo Images
- Summary
- 14. Epilogue
- HTML5 Is Not a Rosy Place
- Dart: A Promising Language
- HTML5 Is in Demand Today
- A. Selected HTML5 APIs
- Does Your Browser Support HTML5?
- Handling Differences in Browsers
- HTML5 Web Messaging API
- Sending and Receiving Messages
- Communicating with an iFrame
- Applying the Mediator Design Pattern
- Web Workers API
- Creating and Communicating with Workers
- Dedicated and Shared Workers
- The WebSocket API
- Offline Web Applications
- Prerequisites for Developing Offline Web Applications
- Application Cache API
- Is Your Application Offline?
- Options for Storing Data Locally
- Web Storage Specification APIs
- localStorage API
- sessionStorage API
- localStorage and sessionStorage commonalities
- Introduction to IndexedDB
- Object stores and versioning
- Transactions
- Modyfying the object store data
- Retrieving the data
- Runninng the sample code
- The History API
- Modifying the Browsers History by Using pushState()
- Processing the popstate Event
- Summary
- B. Running Code Samples and IDE
- Choosing an IDE
- Running Code Samples in WebStorm
- Using Two IDEs: WebStorm and Eclipse
- 10. Responsive Design: One Site Fits All
- Index
- Colophon
- Copyright