The Reimagined Trailblazer Community is Here! Learn More.

Create a Salesforce App

In this step, you create a Salesforce DX project and build your first Lightning App.

Create a Salesforce DX Project

Now that the Salesforce CLI is set up, create a new project and authorize your Trailhead Playground.

  1. Open a command prompt, such as cmd on Windows or Terminal on macOS.
  2. Create a new Salesforce DX project with this command.
  3. sfdx force:project:create -n lightning-conference
  4. Navigate to the new directory with this command.
  5. cd lightning-conference
  6. Run the following command to authorize your Trailhead Playground with the Salesforce CLI, save it with the new alias, and set the current user as the default user:
  7. sfdx auth:web:login -s -a conference
  8. When the browser window with the Salesforce login page opens, enter your Trailhead Playground credentials, which you noted in the previous project.

Your Salesforce org is now authorized. You can open it in a browser from the command line at any time with this command:sfdx force:org:open.

Create an App Page

A Salesforce app is a group of tabs that makes it easy for users to access a set of related features. You are going to migrate the single page Node.js app you created in the last project and convert it into a Salesforce app.

Start by creating an Agenda app page that displays the session list. The page is created with Lightning App Builder, a declarative user interface builder. You’ll use this tool later to add components to the pages. For now, you just create a blank page.

  1. Open the Salesforce org by running 
    sfdx force:org:open
  2. From Setup, enter Lightning App Builder in the Quick Find box and select Lightning App Builder.
  3. Click New.
  4. Leave the default selection to App Page and click Next.
  5. Enter Agenda as the label then click Next.
  6. Select One Region as the page layout, then click Finish.
  7. Click Save.
  8. Click Activate.
  9. Leave the defaults as is and click Save, then click Finish.
  10. Click Back on the top left of the page to return to Setup.

This page needs to be added to a Lightning App. You haven’t created one yet, so let’s do that.

Create the Lightning Conference App

  1. From Setup, enter App Manager in the Quick Find box and select App Manager.
  2. Click New Lightning App.
  3. Define the new Lightning app as follows.
    • App Name: Conference
    • Developer Name: Conference
  4. Click Next.
  5. On the App Options screen, leave the defaults as is and click Next.
  6. On the Utility items screen, leave the defaults as is and click Next.
  7. On the Navigations Items screen, select Agenda and Sessions and move them to the Selected Items box. Then click Next. Agenda is the app page that we just created. The Sessions navigation item was automatically created in the previous project, when you created the Session object.
  8. On the User Profiles screen, select System Administrator and move it to Selected Profiles.
  9. Click Save & Finish.
  10. From the App Launcher (App Launcher), find and select Conference.

Apps in app launcher.

Congratulations! You just created your first application on the Salesforce Platform. This first version looks a bit empty, so in the next step you'll add your custom components to it.

Keep learning for
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities