Friday 22 December 2017

Lightning Basics Part 3: How Enable Custom Domain

Arpit Sharma
In Previous Part, we see Why Need of custom domain. Now We will see how we can configure a custom domain in salesforce for lightning. So Let's Begin with one by one step.

Step 1: Click on Setup.



Step 2: Domain Managment - > My Domain


Step 3: Enter Unique Domain name here which show your company brand, It can be 40 characters, Include numbers and hyphens, but can't be start or end with a hyphen


Step 4: Click on Check Availablity button to check whether or not your entered domain not used by others.

Step 5: Then Click on Register Domain


Step 6: In Few Minutes you will receive domain ready for testing email on your email id.

Step 7: Now Again go to Domain Managment - > My Domain Then clicks on the login button to test your domain Internally.


Step 8: Then Click on deploy to user button to redirect all URL to your new domain.


So We have successfully set up our custom domain. Let me know If you face any issue.

Thursday 21 December 2017

Lightning Basics Part 2: Enable Custom Domain

Arpit Sharma
Why My Domain?



Salesforce comes with lightning but when I try to run my lightning app then salesforce ask me "Lightning component require custom domain Please contact the System administrator for more information", So the first question that comes to my mind, why I need to an enabled custom domain?

So I try to investigate and come with some points here.

There are a number of reasons that we need a custom domain for lightning.

1. A domain is unique, It shows your brand.

2. It is more secure means you can block all the URL that not contains this domain.

3. If you installed the third-party lightning component and you are also developing a lightning component in your org both have their namespace and own custom domain, So It helps salesforce to differentiate your component code and third-party code.

These are the points that I have found out and if found some more then I will update this post.



Tuesday 19 December 2017

Lightning Basics Part 1: Introduction

Arpit Sharma
Lightning Basics Part 1

Introduction




As per developer perspective, Initially, When our requirement not completed by using existing salesforce point and click automation than we fulfill our requirement by using visual force pages and Apex programming language. Now Salesforce has something new for the developers.

Facebook, Twitter, Google all have their javascript framework. Now Salesforce has its own framework with a named lightning framework.

The lightning framework is basically a javascript component-based framework. It makes easy to develop a responsive app that works well both in lightning as well as salesforce 1.

Component-Based

Lightning framework use component to develop requirement and components are off shelf component, means once a component is developed we can attach that component to any other lightning component, lightning app, on a lightning home page and on other places as well. So code reusability of code can be increased with the help of component. we can use component by using a single line of code in our code or by using drag and drop on salesforce pages. 

Event-Driven 

Lighting framework is event-driven, means if we want to perform an action on user activity then we need to register and define that events. Some events are inbuilt and some events are built by a developer.