Create expenseTracker.app
Create a static mockup in a .app file, which is the entry point for your app. It can contain other components and HTML markup.
- Click Your Name > Developer Console to open the Developer Console.
- In the Developer Console, click File > New > Aura Application.
- Enter
expenseTracker
for the Name field in the New Aura Bundle popup window. This creates a new Aura app,expenseTracker.app
. - In the source code editor, enter this code.
- Add styles to your new component.
a. In the sidebar, click STYLE. This creates a new CSS resource,expenseTracker.css
.
b. Enter these CSS rule sets.
THISNote: THIS is a keyword that adds namespacing to CSS to prevent any conflicts with another component’s styling.
Test the app
Save your changes and click Preview in the sidebar to preview your app. Alternatively, go to http://<mySalesforceInstance>/<namespace>/expenseTracker.app
in your browser. You should see a header and icon.