Learning Salesforce Lightning Application Development
Build and test Lightning Components for Salesforce Lightning Experience using Salesforce DX
Mohith Shrivastava
BIRMINGHAM - MUMBAI
Learning Salesforce Lightning Application Development
Copyright 2018 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 or its dealers and distributors, will be held liable for any damages caused or alleged to have been 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.
Commissioning Editor: Aaron Lazar
Acquisition Editor: Siddharth Mandal
Content Development Editor: Arun Nadar
Technical Editor: Surabhi Kulkarni
Copy Editor: Safis Editing
Project Coordinator: Sheejal Shah
Proofreader: Safis Editing
Indexer: Pratik Shirodkar
Graphics: Jason Monteiro
Production Coordinator: Shantanu Zagade
First published: July 2018
Production reference: 1300718
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78712-467-7
www.packtpub.com
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
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 service@packtpub.com 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.
Foreword
In the last decade, web technologies have changed beyond anybody's prediction. There was a time when people across industries were talking about moving away from JavaScript. However, it worked the other way around. Frameworks like Angular and React became the backbone of many enterprise applications and emerged as favorite technologies to build an application.
In a nutshell, it is the JavaScript that won and established itself as a winner of this decade. It is not only used for desktop based applications, but also in mobile and server-side programming such as Node.js.
It isn't really about JavaScript, but rather the impact it has created on technology industry and workforce. Salesforce has been awarded as the most innovative company multiple times in the past several years and it wouldn't come as a surprise if we see Salesforce already ahead in the race of adopting cutting-edge technology.
One of many success mantras for Salesforce is to keep developer and admin happy. It offers powerful tools to a developer to create top-notch features and customizations, at the same time it enables Administrators to use, configure, and suggest improvements for those components.
How can we leverage the JavaScript workforce, give developers the tool they want, and how to make administrators superheroes of implementations?
Welcome to the world of Lightning Experience! Did you noticed, how many targets this innovative company shot with a single arrow?
Lightning Experience is the future of Salesforce implementations and there is no doubt in saying, Lightning Component is its soul. If you have JavaScript developers, let them work on client controller, if you have Apex developer, let them work on Server controller. Reusable Components built by developers can be used creatively by Salesforce Administrators in Record Page, Home Page, Community, Wave Dashboard and so on.
If you are new to Salesforce development or been a developer for many years working on Visualforce, you would need to skill up in Lightning Component development. Lightning Component is a blend of JavaScript, HTML, CSS, Apex, and Salesforce Platform features, and you need to make sure you got your blend right to build a delicious Lightning recipe.
I believe this book written by Mohith, would give you the right proportion of knowledge about JavaScript and Salesforce platform features to build mind-blowing components and impress your team and clients. This book contains so many tips and pointers which will open up your imagination and would get you excited!
Jitendra Zaa
Salesforce MVP and Sr. Technical Architect at IBM
Contributors
About the author
Mohith Shrivastava has been building and architecting Salesforce applications since 2011, when he graduated from the National Institute of Engineering, Mysore.
He is currently a Salesforce MVP and holds multiple Salesforce certifications. He is an active contributor on Salesforce Stack Exchange Community. Mohith has authored Learning Salesforce Einstein and Salesforce Essentials for Administrators for Packt publishing. In his leisure time, he loves exploring the latest technologies and spending time with his family.
I would like to thank my parents for nurturing and helping me in all possible ways. I would like thank my wife, Nisha, for her never-ending love and support. The editing team at Packt, as well as my colleagues and the management at Codescience, have been very supportive throughout the journey of this book.
Special thanks to the Salesforce Ohana Community, and to Abhishek Raj and Jitendar Zha for reviewing the content and testing the code.
About the reviewers
Abhishek Raj is a Salesforce consultant working at one of the Big Four consulting firms. He started his career in ISV product development. He has experience with Apex, Visualforce, Lightning, Einstein, predictive analytics, Wave, Java, and the Spring Hibernate frameworks. He has worked on multiple projects in various sectors, such as manufacturing, healthcare, consumer, Insurance, and credit services. He currently holds six certifications from Salesforce. He is a keen and active member of the Bangalore Salesforce Developer group. He is also Meritorious Alumnus of NMIMS University, Mumbai. He has reviewed
Next page