This repository contains a sample application based on the fflib-apex-extensions package.
Dependencies:
These samples are dependent on the following packages:
Do have a look at the
Wiki pages
for a full overview of all the features in fflib-apex-extensions,
or have a look at the
Method Reference
documentation with explanations for all the methods.
Use the following installation instructions for downloading the examples and installing them into a Scratch Org.
Before you start you need to have the SFDX CLI installed which is authorised to a DevHub envirionment. Have a look at this Trailhead if you need assistance for doing this.
- Download a copy of this repository
git clone https://github.com/wimvelzeboer/fflib-apex-extensions-samplecode.git
- Create local project configuration
cd fflib-apex-extensions-samplecode
cp ./dev-tools/templates/local-config-template.sh.ejs ./dev-tools/lib/local-config.sh
- Edit the local project configurion file
Edit the file ./dev-tools/lib/local-config.sh
in your favorite TEXT editor.
Find the following settings and set it to the desired value
Find Setting | Example | Notes |
---|---|---|
DEV_HUB_ALIAS="<%%-userAnswers.devHubAlias%>" | DEV_HUB_ALIAS="MyDevHub" | Set this to the Alias of DevHub you authorised in your SFDX CLI |
SCRATCH_ORG_ALIAS="$NAMESPACE_PREFIX-SCRATCH" | SCRATCH_ORG_ALIAS="apex-ext-samples" | The Scratch Org alias to be created |
- Execute the
rebuild-scratch-org
script
The following command will execute the process to (re-)create a Scratch Org, install the dependencies and deploy the code examples. After execution, check the listed configuration values and enter "YES" to confirm.
./dev-tools/rebuild-scratch-org
Have fun looking at the code and learning the patterns!