0% found this document useful (0 votes)
8 views

VsCode_ModelerChangeDeveloperGuide

Uploaded by

Sidharth Panda
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

VsCode_ModelerChangeDeveloperGuide

Uploaded by

Sidharth Panda
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Note: This document assumes use of the VS Code based Consumer Goods Cloud Modeler.

Reference this help article to


begin.

Create Sfdx Project


1. In VS Code, create a new sfdx project.
a. Use the command palette command “Create project with manifest”
b. Choose “Standard”
c. Choose a name for the project (e.g. CGC_Modeler)
d. Choose folder location and click Create Project

2. In the VS Code terminal, run “sf modeler workspace create”


3. Add the consumer key from the modeler connected app
a. Retrieve the consumer key from the connected app for the environment you are developing against.
b. Navigate to file [ProjectRoot]/appl/config/config.json
c. Paste the consumer key into the sfConsumerKey value.

Create Git Branch


1. Navigate to the Modeler Code repo here: https://dev.azure.com/PepsiCoIT/FLNA_SAFe/_git/CGCloud_Modeler
2. Create a new branch by clicking Repos> Branches > New branch

3. Name the branch after your Azure US#, and base the branch off DidDev (where you should be developing your
work.). Click Create.
4. Use git on your local machine to checkout the branch, then pull the code.

Checkout Modeler Code


1. Using a terminal, navigate to [ProjectRoot]/src.
2. Use git to checkout your feature branch.
3. VS Code should look similar to:

4. Make your change in the modeler code


5. Use command “sf modeler workspace server start” to start the simulator.
6. Navigate to http://localhost:3000/framework/index.html?desktop and verify your change looks good.
7. If it looks proper and ready, commit your change to your feature branch, create a PR into the environment
branch, and inform dev lead for review.
8. Once PR is approved and code is merged into environment branch, a developer can use command sf modeler
workspace package to create the deployment package.
9. This deployment package can then be uploaded to the environment and assigned to a group or all users.

You might also like