본문 바로가기
Salesforce/Trailhead

Aura app에 component 끼우고 확인하기

by proudofch 2021. 3. 25.

trailhead.salesforce.com/content/learn/modules/lex_dev_lc_basics/lex_dev_lc_basics_create

 

Aura Components Basics

Use Aura components to build modern web apps with reusable UI components.

trailhead.salesforce.com

 

이거 하는데 developer console 쓰기 싫어서 vscode로 org 연결해서 쓰기 시작함.

아우라 앱에 아우라 컴포넌트를 껴서 잘 됐는지 확인해보려면,

터미널에 아래 명령어를 입력한다.

sfdx force:source:deploy -p force-app/main/default

그리고 트레일헤드에서 알려준 주소인

yourDomainName.lightning.force.com/c/harnessApp.app

일로 들어가면 (yourDomainName엔 당연히 당신의 org 주소가 들어가야 함) 켜짐 ㅠㅠㅠ 후... 해냈당..

별거 아니지만 기뻐서 써본당

 

c를 넣는 이유:  In your Trailhead org you shouldn’t have a namespace configured, so you should see a “c” in that part of the URL. “c” represents the default namespace

 

그리고 developer console에서 File | New | Lightning Application 이 부분은 vscode에선

Ctrl+Shift+P > SFDX: Create Aura App 이다.

댓글