Module 2: Setting Up Your Environment

In this module, you set up your environment to enable Lightning development.

What you will learn

  • Create a Namespace
  • Enable Lightning Components in your Salesforce org
  • Upload Static Resources for use in your Lightning application

Step 1: Create a Namespace

A namespace is globally unique across all Salesforce organizations. Namespaces are case-insensitive and have a maximum length of 15 alphanumerical characters.

  1. Login to your Salesforce Developer Edition

  2. Click Setup (upper right corner)

  3. Click Create > Packages (left navigation)

  4. Click Edit and Continue

  5. Enter the namespace prefix you want to register, and click Check Availability. If the namespace you entered is not available, try again until you find a namespace that is available.

  6. Click Review My Selections

  7. Click Save

Step 2: Enable Lightning Components

  1. In Setup, click Develop > Lightning Components

  2. Check the Enable Lightning Components checkbox

  3. Click Save

Step 3: Upload Bootstrap as a Static Resource

To help you make the application look good, you will use a version of Twitter Bootstrap customized to match the Salesforce1 guideline.

  1. Download and unzip the Salesforce Foundation Bootstrap here

  2. In Salesforce, click Setup > Build > Develop > Static Resources

  3. Click New

  4. Specify bootstrap as the Name, then click the Choose File button, and select the bootstrap.css in the dist/css directory of the unzipped bootstrap folder

  5. Click Save

comments powered by Disqus