This project is designed to use CumulusCI. So your first job is to make sure that you have the following installed on your development computer:
A complete set of general instructions on setting up CumulusCI can be found in the CumulusCI Documentation
-
Get a copy of the Event App code from GIT. If you are not directly collaborating with the project you may want to fork the project into your own GIT repository:
git clone https://github.com/tcdahlberg/USTEventsDX.git
-
In your terminal, in the code directory check and see if the project is already set up with CumulusCI:
cci project info
If the project is not set up you will get this message:
The file cumulusci.yml was not found in the repo root. Are you in a CumulusCI project directory?
If you get the above message use the following command to init the project into cumulusCI:
cci project init
-
Connect Github and and Cumulus to this project:
cci service connect github
- Enable Dev Hub in Your Org
- Connect SFDX to Your Dev Hub Org (be sure to use the
--setdefaultdevhubusername
option).
For production environments you will want to manually set up your org to finely tune your permissions and sites. Use the following instructions for installation in production Orgs.
cci org scratch dev <org_name> --days 7
cci org list
cci flow run dev_org --org <org_name>
Normally you would be done with a project at this point, but the Event app requires a salesforce site domain be set up. You will need to do this in the next step and then run one final command to complete the site set up.
-
Open the org you are working on in the browser
cci org browser <org_name>
<org_name> for development is dev
-
In Setup go to User Interface -> Sites and Domains -> Sites
-
Select a subdomain that is available. Since you are spinning up scratch orgs you may want to start incrementing a subdomain on a theme (myevents0001...myevents0002).
-
Click "Register My Salesforce Site Domain"
If you are spinning up a scratch org for development purposes then setup just got easier for you. Just enter the following command:
cci flow run config_site --org <org_name>
<org_name> for development is dev
Your new scratch org is created and ready for you to develop against!
cci org browser <org_name>` to open the org in your browser.