37,19 €
Client side JavaScript for enterprise Oracle applications.
If you are a web components developer looking to create client-side apps that are resilient and robust using Oracle JET, then this book is the right choice for you.
This book will give you a complete practical understanding of the Oracle JavaScript Extension Toolkit (JET) and how you can use it to develop efficient client-side applications with ease. It will tell you how to get your own customized Oracle JET set up.
You'll start with individual libraries, such as jQuery, Cordova, and Require.js. You'll also get to work with the JavaScript libraries created by Oracle, especially for cloud developers. You'll use these tools to create a working backend application with these libraries. Using the latest Oracle Alta UI, you'll develop a state-of-the-art backend for your cloud applications. You'll learn how to develop and integrate the different cloud services required for your application and use other third-party libraries to get more features from your cloud applications.
Toward the end of the book, you'll learn how to manage and secure your cloud applications, and test them to ensure seamless deployment.
This book will have a practical step by step approach where every step of application development will be explained in detail with code samples.
Sie lesen das E-Book in den Legimi-Apps auf:
Seitenzahl: 163
Veröffentlichungsjahr: 2017
BIRMINGHAM - MUMBAI
Copyright © 2017 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: December 2017
Production reference: 1061217
ISBN 978-1-78728-474-6
www.packtpub.com
AuthorRaja Malleswara Rao Pattamsetti
Copy EditorSafis Editing
ReviewerBogunuva Mohanram Balachandar
Project CoordinatorUlhas Kambali
Commissioning EditorAmarabha Banerjee
ProofreaderSafis Editing
Acquisition EditorDenim Pinto
IndexerPratik Shirodkar
Content Development EditorVikas Tiwari
GraphicsJason Monteiro
Technical EditorSubhalaxmi Nadar
Production CoordinatorNilesh Mohite
Raja Malleswara Rao Pattamsetti is a Java architect, focusing on enterprise architecture and the development of applications with web, Java, and related technologies on the cloud. He is a certified Java and web components developer with deep expertise in building enterprise applications using diverse frameworks and methodologies. He is an active participant in technical forums, groups, and conferences. He has worked with several Fortune 500 organizations and is passionate about learning new technologies and their developments. He has also authored the books, Distributed Computing in Java 9 and Spring Batch Essentials by Packt.
Bogunuva Mohanram Balachandar is a senior architect with a leading American multinational corporation listed in NASDAQ-100 that provides digital, technology, consulting, and operations services. He has over 16 years of IT industry experience in software design and development. Prior to joining his current employer, he has worked with IBM, Accenture, and Wipro. He has extensive experience in the design and development of multiple Enterprise Application Integration projects using various tools and technologies, such as Oracle SOA Suite, Oracle Service Bus, Oracle AIA, IBM WebSphere Process Server, web services, RESTful services, Business Process Execution Language (BPEL), IBM WebSphere MQ, TIBCO EMS, Java, JMS, and Spring integration. He is certified in SOA, web services, and cloud technologies from IBM and Oracle.
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career.
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web browser
Thanks for purchasing this Packt book. At Packt, quality is at the heart of our editorial process. To help us improve, please leave us an honest review on this book's Amazon page at https://www.amazon.com/dp/1787284743.
If you'd like to join our team of regular reviewers, you can email us at [email protected]. We award our regular reviewers with free eBooks and videos in exchange for their valuable feedback. Help us be relentless in improving our products!
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
Downloading the color images of this book
Errata
Piracy
Questions
Getting Started with Oracle JET
Getting started with Oracle JET
Oracle JET features
Bootstrapping your first Oracle JET project
Setting up npm and Node.js
Installing Yeoman and Grunt
Installing Oracle JET generator
Creating a project using the command line
Running a project with Grunt
Managing and running the project using NetBeans IDE
Summary
Oracle Alta UI
What is Oracle Alta UI?
Oracle JET web application styles with Alta UI
Applications with Alta UI
Dashboard style
Card page style
List page style
Detail page style
Additional page styles and wizards
Form page style
Master - detail style
Wizards
Recommendations
Summary
Tool Integration
What is the build pipeline?
Grunt
Gulp
Installing Gulp
RequireJS
Installing RequireJS
webpack
Summary
Knockout JS
What is Knockout.js?
Knockout.js features
Installation and programming
Observables
Computed observables
Observable arrays
Data bindings
Control-flow bindings
Appearance bindings
Interactive bindings
External data access and animations
Usage in Oracle JET applications
Summary
Oracle JET Components – Form Elements, Controls, and Data Collections
Oracle JET components
Steps involved in adding a component
Form components
Text input components
Input text
Input password
Text area
Input number
Input date
Input time
Input date time
Selection components
Select
Combo box
Checkbox set
Radio set
Switch
Form controls
Data collections
Summary
OJ Components – Layouts, Navigation, and Visualizations
Visualization components
Charts
Area charts
Gauges
Dial gauges
LED gauges
Rating gauges
Status meter gauges
Trendy visualization components
Sunbursts
Layout and navigation components
Layout and navigation examples
Accordions
Modal dialogs
Navigation lists
Panels
Tabs
Summary
Framework
Application routing
Validations and conversions
Validations
Component validations
Application level validations
Converters
Responsiveness
Media queries
Performance
JavaScript optimization techniques
CSS optimization techniques
Oracle JET component optimization techniques
Internationalization and localization
Accessibility
Application theming
Customized application theming
Customizing the application theme using Sass
Customizing the application theme using Theme Builder
Summary
Hybrid Mobile Application Development
Oracle JET mobile tools
Cordova
Hybrid mobile application development
Building and serving the application with Grunt
Importing the FixItFast application
Packaging and publishing a mobile application
Packaging a mobile application
Publishing a mobile application
Publishing on an iOS platform
Publishing on an Android platform
Summary
Testing and Debugging
The importance of programmatic testing
Test-driven development (TDD)
Agile model-driven development (AMDD)
Behavior-driven development (BDD)
Oracle JET application testing tools
QUnit
Jasmine
Mocha
Selenium WebDriver
Running JavaScript unit tests
Karma
JS test driver
Debugging Oracle JET applications
Using browser extensions
Using IDE extensions
Summary
Security and Version Migration
Common web application vulnerabilities
Cross-Site Scripting (XSS)
SQL injection
LDAP injection
CRLF injection
Cross-Site Request Forgery (CSRF)
Insecure cryptographic storage
Buffer overflow
Directory traversal
Oracle JET security offerings
Version migration with Oracle JET
The future of the Oracle JET framework
Summary
In real-world enterprise application design and development, multiple aspects need to be considered, starting from building a simple drop-down list to developing platform-independent features such as accessibility or UI consistency, which are left unattended more often than not. Oracle JavaScript Extension Toolkit (JET) gives you the set of important building blocks needed for your application, and it doesn't forget about making your application mature, in terms of internationalization, localization, and multiplatform development.
While we describe each of the concepts with a detailed explanation and handy diagrams that aptly represent the components and developer actions, we also bring appropriate examples and code snippets to help you understand how they can be implemented with the help of Oracle JET.
There are numerous improvements to the Oracle JET concepts and additional features that enable support for the development of web applications with Oracle JET. We'll discuss each of the Oracle JET concepts, along with improvements and their implementation in, separate chapters; these concepts have helped the field of web development advance further over the last few decades. This should cover the design thoughts and security aspects as well, which we believe lets you concentrate on each specific topic and understand it a step further with the right combination of explanations, diagrams, and code snippets.
This book took about 6 months for me to write and it was a great journey. The design and development experiences with multiple enterprise applications on cloud portfolio and webpack systems, along with the support of solution architecture teams, helped me go through the on-ground challenges and improve the design standpoint of the web interface. There are many places where I start talking about the project development life cycle, Agile, TDD and BDD, and the importance of rapid development and automated tests on UI development before the solution implementation specifics. Also, care has been taken to help you with the explanation of the concepts in such a way that you'll feel like you're participating in a detailed technical conversation.
Most of the concepts are imbued with an everlasting perception of reusability and thorough engineering, and I believe some parts of this will remain with you as useful techniques to reuse in your application development.
Finally, while I've made sure to complement every chapter with plenty of illustrations to get the desired output, I think it is paramount for you to review each concept and practice it, so you learn and build your confidence of working with such systems.
Have fun building great things!
Chapter 1, Getting Started with Oracle JET, gets you started with using Oracle JET, bootstrapping the project, and understanding the project's base architecture.
Chapter 2, Oracle Alta UI, explores the different ways of using the UI framework, Alta, in Oracle JET.
Chapter 3, Tools Integration, explains how to integrate Oracle JET into your build pipeline. The most popular build tools are covered in this chapter.
Chapter 4, Knockout JS, introduces and explores Knockout, the library behind OJ. It also covers best practices around it.
Chapter 5, Oracle JET Components – Form Elements, Controls, and Data Collections, covers the handling of components related to collections, controls, and forms.
Chapter 6, Oracle JET Components – Layouts, Navigation, and Visualizations, discusses the components related to layouts, navigation, and graph visualizations.
Chapter 7, Framework, explains the application part of an OJ project. The chapter is divided into two subsections covering a wide spectrum of concepts, from component validations to routing and tests.
Chapter 8, Hybrid Mobile Application Development explains how a multiplatform application can be set up and developed.
Chapter 9, Testing and Debugging, explores the testing and debugging of Oracle JET applications.
Chapter 10, Security and Version Migration, examines different security issues and constraints associated with web applications, what to look for when the version changes, and what's to come in the next Oracle JET versions.
To follow along with this book, you'll need a computer with an internet connection. You can choose to work online on a JSFiddle kind of cloud web environment to practice the examples. I recommend that you have the NetBeans IDE with Grunt, Oracle JET, and the HTML5 extension along with a Chrome browser containing the NetBeans runner.
This book has been tested on people who have a decent programming knowledge of web applications with basic HTML, CSS, and JavaScript, and who wanted to venture into learning a framework that will help them build features on top of the base components. They picked up with practice and by the end of the book, they gained a thorough knowledge of Oracle JET and its design aspects. Through this book, you will learn some tricks and tips that you didn’t know about and be given wise suggestions that will help you along the way.
This book, if followed from cover to cover, will turn you into a proficient web interface expert. On the other hand, if you already are, it provides a good reference for many different features and techniques that may come in handy from time to time. Finally, this book is also a valid migration guide if you have already experimented with Oracle JET concepts and felt overwhelmed by the change.
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning. Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Similarly, we have added another markedEmployee."
A block of code is set as follows:
<td data-bind='text: name'></td>
Any command-line input or output is written as follows:
npm -g install yo grunt-cli
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Click on the Install button, which should install Node.js, along with the npm package manager, on your computer."
Feedback from our readers is always welcome. Let us know what you think about this book-what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of. To send us general feedback, simply email [email protected], and mention the book's title in the subject of your message. If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files emailed directly to you. You can download the code files by following these steps:
Log in or register to our website using your email address and password.
Hover the mouse pointer on the
SUPPORT
tab at the top.
Click on
Code Downloads & Errata
.
Enter the name of the book in the
Search
box.
Select the book for which you're looking to download the code files.
Choose from the drop-down menu where you purchased this book from.
Click on
Code Download
.
Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:
WinRAR / 7-Zip for Windows
Zipeg / iZip / UnRarX for Mac
7-Zip / PeaZip for Linux
The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Oracle-JET-for-Developers. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!
We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from http://www.packtpub.com/sites/default/files/downloads/OracleJETforDevelopers_ColorImages.pdf.
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books-maybe a mistake in the text or the code-we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title. To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.
Piracy of copyrighted material on the internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the internet, please provide us with the location address or website name immediately so that we can pursue a remedy. Please contact us at [email protected] with a link to the suspected pirated material. We appreciate your help in protecting our authors and our ability to bring you valuable content.
If you have a problem with any aspect of this book, you can contact us at [email protected], and we will do our best to address the problem.
