4c650b2966 | ||
---|---|---|
config | ||
force-app/main/default | ||
.gitignore | ||
LICENSE | ||
README.md | ||
sfdx-workspace.json |
README.md
sfdx-dreaminvest
This is an SFDX-ified version of Christophe Coenraets Mutual Fund Explorer Lightning App. You can find details on his on the post Mutual Fund Explorer: A New Lightning Components Sample Application.
I converted this app to SFDX by doing the following:
-
Installed the unmanaged package into an org (I used a scratch org but it doesn't matter).
-
Created a new SFDX workspace:
sfdx force:workspace:create -n sfdx-dreaminvest
-
Created a new directory:
mkdir mdapipackage
-
Invoked a metadata retrieve on the package:
sfdx force:mdapi:retrieve -s -r ./mdapipackage -p DreamInvest
-
Retrieved the package:
sfdx force:mdapi:retrieve --jobid [JOBID] --retrievetargetdir ./mdapipackage
-
Unzipped the paackage:
unzip mdapipackage/unpackaged.zip -d mdapipackage/
-
Removed the zip:
rm mdapipackage/unpackaged.zip
-
Converted the source:
sfdx force:mdapi:convert -r mdapipackage/
-
Removed the old source:
rm -rf mdapipackage
Now I can push and run:
-
Create a scratch org:
sfdx force:org:create -s -f config/workspace-scratch-def.json
-
Push the source into my org:
sfdx force:source:push
-
Assign the user to the permset:
sfdx force:user:permset:assign -n DreamInvest
-
Open the org and run app:
sfdx force:org:open