TrainingTracker App

Spin up a Scratch org TrainingTracker_ORG1


# create the project TrainingTracker 

$ sfdx force:project:create -n TrainingTracker
target dir = /Users/mchinnappan/lightning/apps
   create TrainingTracker/sfdx-project.json
   create TrainingTracker/README.md
   create TrainingTracker/.forceignore
   create TrainingTracker/config/project-scratch-def.json

cd TrainingTracker 

## get a DevHub 30 days org :
open https://developer.salesforce.com/promotions/orgs/dx-signup



# login into DebHub

$ sfdx force:auth:web:login -d -a DevHub201
Successfully authorized mohan.chinnappan.dh201@gmail.com with org ID 00D1H000000NSUhUAO
You may now close the browser


$ sfdx force:org:list 

=== Orgs
     ALIAS       USERNAME                              ORG ID              CONNECTED STATUS
───  ──────────  ────────────────────────────────────  ──────────────────  ─────────────────
(D)  DevHub201   mohan.chinnappan.dh201@gmail.com      00D1H000000NSUhUAO  Connected


$ sfdx force:org:create -s -f config/project-scratch-def.json  -a TrainingTracker_ORG1
Successfully created scratch org: 00DZ000000NDy8QMAT, username: test-9gslwclndh6i@example.com

$ sfdx force:org:list 

=== Orgs
     ALIAS       USERNAME                              ORG ID              CONNECTED STATUS
───  ──────────  ────────────────────────────────────  ──────────────────  ─────────────────
(D)  DevHub201   mohan.chinnappan.dh201@gmail.com      00D1H000000NSUhUAO  Connected


    ALIAS                 SCRATCH ORG NAME     USERNAME                       ORG ID              EXPIRATION DATE
───  ────────────────────  ───────────────────  ─────────────────────────────  ──────────────────  ───────────────
(U)  TrainingTracker_ORG1  mchinnappan Company  test-9gslwclndh6i@example.com  00DZ000000NDy8QMAT  2018-06-23


## Create a LEX component : Greeter
$ sfdx force:lightning:component:create -n Greeter -d force-app/main/default/aura/

## Open in IDE VS Code and make few changes to the Greeter Component
$ code .

## Push this component bundle into Scratch Org: TrainingTracker_ORG1
$ sfdx force:source:push

## open the scratch org 
$  sfdx force:org:open
Access org 00DZ000000NDy8QMAT as user test-9gslwclndh6i@example.com with the following URL: https://saas-customization-7196-dev-ed.cs11.my.salesforce.com/secur/frontdoor.jsp?sid=00DZ000000NDy8Q!AREAQL0BPZX4aInIffjSNQwc6QnorhgOsZHYaTT4U_brQvGfTrn_8WoAqtvYKfTh_2Ez6hx45k99d2yEVHUH0KF9V51rke4x

### Using UI add the picklist field field Department__c for the object Contact
###   Picklist values: ['Development' , 'Dev Ops', 'Testing', 'Marketing', 'Sales']

## pull the changes from the Org to the project folder:

$ sfdx force:source:pull
=== Pulled Source
STATE  FULL NAME                                  TYPE                  PROJECT PATH
─────  ─────────────────────────────────────────  ────────────────────  ─────────────────────────────────────────────────────────────────────────────────
Add    TrainingTrackerApp/TrainingTrackerApp.app  AuraDefinitionBundle  force-app/main/default/aura/TrainingTrackerApp/TrainingTrackerApp.app-meta.xml
Add    TrainingTrackerApp/TrainingTrackerApp.app  AuraDefinitionBundle  force-app/main/default/aura/TrainingTrackerApp/TrainingTrackerApp.app
Add    Contact.Department__c                      CustomField           force-app/main/default/objects/Contact/fields/Department__c.field-meta.xml
Add    Contact-Contact Layout                     Layout                force-app/main/default/layouts/Contact-Contact Layout.layout-meta.xml
Add    Contact-Contact (Support) Layout           Layout                force-app/main/default/layouts/Contact-Contact (Support) Layout.layout-meta.xml
Add    Contact-Contact (Sales) Layout             Layout                force-app/main/default/layouts/Contact-Contact (Sales) Layout.layout-meta.xml
Add    Contact-Contact (Marketing) Layout         Layout                force-app/main/default/layouts/Contact-Contact (Marketing) Layout.layout-meta.xml

results matching ""

    No results matching ""