Ext JS Application Development Blueprints
eBook - ePub

Ext JS Application Development Blueprints

Colin Ramsay

Share book
  1. 340 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Ext JS Application Development Blueprints

Colin Ramsay

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Ext JS Application Development Blueprints an online PDF/ePUB?
Yes, you can access Ext JS Application Development Blueprints by Colin Ramsay in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in JavaScript. We have over one million books available in our catalogue for you to explore.

Information

Ext JS Application Development Blueprints


Table of Contents

Ext JS Application Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Introduction
Humble beginnings
Growing up
The shoulders of giants
What is application architecture?
Requirement analysis
Data design
Code design
Technology evaluation
Code standards and practices
Documentation
Ext JS
The world that was
State of the art
Mostly very cool
Supporting cast
Getting ready
The specification
A good match
How we work
In safe hands
If you build it, they will come
Managing your time
You can buy fashion, but you can't buy style
Summary
2. MVC and MVVM
Diary of always
Bringing MVC to the Web
Ext JS and MVC
Examples of Ext JS MVC
How does it help your application
MVC and the illusion of choice
Introducing MVVM
How does Ext JS use MVVM?
Getting our MVVM started
Are we better off?
A brief interlude regarding stores
Inter-communication
The main event
Event domains
An event domain example
Using custom events
Summary
3. Application Structure
Ideas for structure
Getting to know your application
/overrides
/.sencha
bootstrap.js, bootstrap.json, and bootstrap.css
/packages
/resources and SASS
index.html
/build and build.xml
app.js
app.json
Cultivating your code
I'm a lumberjack – let's go log in
Money can't buy class
Singletons
Mixins
The solution to pollution
A global solution to a local problem
Summary – mind your own beeswax
4. Sencha Cmd
What is Sencha Cmd?
Why is it important?
The act of creation
Setting up your application
The generation game
Develop in style
Here to serve – a website
The Bootstrap process
Care for the environment
The final product
Before the build
Code complete
An application for Ant
Version numbers
From release to production
The best of the rest
Packages
Themes
Compilations
Summary
5. Practical – a CMS Application
A content-managed system
The requirements
Accepting the challenge
Starting at the bottom
Work your way up
The devil is in the detail
Where the wild things are
Spiky and hairy
The real deal
A short interlude on data binding
Creating a structure
Data-driven design
A model store
A room with a view
The tree panel and searching
Pages in detail
The magical page view model
This data is now in session
The glue controlling all
Selecting a page
Adding a page
Deleting a page
Saving a page
Summary
6. Practical – Monitoring Dashboard
Application design
Requirements
Message received and understood
Data structure
Live charts
Historical logs
Log statistics
Model behavior
The view from the top
Flexibility and pragmatism
Does this hurt?
Onwards and upwards
Data first
Storing the data
With a view to a controller
The main view controller
Rootin-Tootin
Back to business
Route to nowhere
The dashboard
Constant evaluation
The dashboard view model
The dashboard view controller
Web logs subpage
A view on the Web
Controlling the Web
More and more subpages
Summary
7. Practical – an E-mail Client
Form factors
Application design
I require to admire
Technically speaking
Responding to the situation
Input required
A view to a thrill
Mainly harmless
Full steam ahead
Threading our way
Send me a message
Stay composed
Design overview
Application state
Home screen/initial load
New thread
Show thread
New message/reply
Routing overview
A binding agreement
An eventful application
Events and you
Coding – it's been a long time
It's under control
Login view
Main force
Main ViewModel
Main ViewController
The head of the family
Header ViewModel
Header ViewController
Unravel the thread
Thread ViewModel
Thread ViewController
I am the best message
Messages ViewModel
Messages ViewController
A composed finish
Deciding on a theme
Summary
8. Practical – Questionnaire Component
Application design – my way
Data structure
Consider carefully
Data flow
A binding trick
A difference of opinion
A means to an end
Sketchy sketching
Get set
The data layer
The payload
The wizard component
Do it yourself
Wizardly tools
One step forward
Making progress
Step by step
Questionnaire command and control
The wizard model
A delightful host
Mixin the night away
Summary
9. A Shopping Application
About the app
The product window
The shopping cart
Login and registration
User account
Design overview
Back to Ext JS
The data layer
Information contemplation
Component interaction
In control
The simplicity of view models
Code, code, and more code
What's in store?
Interface in your face
One step ahead
Under the main control
Categorically speaking
Product placement
A basket case
The account window
Summary
10. Debugging and Performance
In-browser debugging
Stepping in
Breaking point
Black box and cut to the chase
Breaking and busting
Caught in the act
Performance in Ext JS
Network performance
Make fewer requests
Perceived performance
Load less
Optimistic updating
Quick on the draw
Overuse of panels
Overnesting
Deferred rendering
Analyzing performance
Summary
11. Application Testing
Total testing
Unit testing
Assert yourself
Integration testing
Integration and differentiation
Testing tool time with Jasmine
Jasmine – installation and configuration
Make it happen
Testing with robots
Up and running with CasperJS
Testability
Should I or shouldn't I?
Faking it with mocks
Continuous coverage
Summary
Index

Ext JS Application Development Blueprints

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2015
Production reference: 1170415
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-530-8
www.packtpub.com

Credits

Author
Colin Ramsay
Reviewers
Govinda Sambamurthy
Vincent Stanislaus
Acquisition Editor
Kevin Colaco
Content Development Editor
Arwa Manasawala
Technical Editor
Shashank Desai
Copy Editor
Relin Hedly
Project Coordinators
Danuta Jones
Purav Motiwalla
Proofreaders
Simran Bhogal
Stephen Copestake
Safis Editing
Indexer
Hemangini Bari
Graphics
Disha Haria
Production Coordinator
Melwyn D'sa
Cover Work
Melwyn D'sa

About the Author

Colin Ramsay is a software developer and writer with 15 years of coding experience. From .NET to Ruby, JavaScript, and CSS, he has worked with a range of technologies and local and international clients. His company, Go Tripod Ltd., is based in Cornwall, UK. This company work...

Table of contents