Skip to content

Development Environment Instructions

Aileen edited this page Feb 22, 2022 · 12 revisions

Iteration X (New)

These steps of instructions DO NOT use scratch orgs at all. Packages and components are deployed directly into the Salesforce Org using Visual Studio Code and Salesforce Expansion Pack.

READ BELOW in the previous iteration for development in scratch orgs

Step 1: Clone the repository by entering command below into your terminal, then open TrialoftheTitans in VS Code

  • git clone https://github.com/revaturelabs/TrialoftheTitans

OR

  • Launch Visual Studio Code
  • Open Source Control ( Ctrl + Shift + G | Command (or Cmd) ⌘ + Shift + G on Mac ) and Select Clone Repository
  • Enter https://github.com/revaturelabs/TrialoftheTitans
  • Create a new folder and select it
  • Select Open when this pop extension shows up
    open cloned repo

Step 2: Setup your DevHub

  • Create a new playground from https://trailhead.salesforce.com/users/profiles/orgs

  • Launch your created playground and reset its password
    image

  • Click on the Gear on the upper right and select Setup
    settingsinstruction

  • Click on your profile picture on the upper right -> Select Settings -> Keep a note of your username ( This is what we will use to authorize the org in VS code )
    username

  • Enter 'Dev Hub' in the Quick Find Search box on the upper left
    devhub instruction

  • Enable Dev Hub and Unlocked and Second-Generation Managed Packages
    enabledevhub2ndpackage

Step 3: Authorize your Dev Hub in Visual Studio Code

  • In command pallet type ( CTRL + SHIFT + P on Windows | Command (or Cmd) ⌘ + Shift + P on Mac ): SFDX: Authorize an Org

  • Select Project Default

  • Enter an alias for your org ( ex: TrialofTitansOrg )

  • Login using the username and password from Step 2

Previous Iterations

Click Me!

ITERATION 6

See a more detailed guide at: https://docs.google.com/document/d/1FoQx7h6-wO-UUqa7yi6nHHu4ZFGuxQplrg5rspJEpiA/edit?usp=sharing

Step 1: Clone the repository by entering command below into your terminal, then open TrialoftheTitans in VS Code

  • git clone https://github.com/revaturelabs/TrialoftheTitans

Step 2: Setup your DevHub and create a scratch org

  • Open new playground

  • Enable Dev Hub

  • Enable Unlocked and Second-Generation Managed Packages

  • If not recognized as SFDX project, in command pallet type: SFDX: Create Project

  • In command pallet type: SFDX: Authorize a Dev Hub

  • In command pallet type: SFDX: Create a Default Scratch Org

Note: Not required unless developing a new package

  • To start new package type in terminal SFDX force:package:create -n Good_Name_Here -t Unlocked -r Same_Good_Name -d "Good Description Here"

For additional information refer to: Package Based Development

Note: Before you push for the first time, make sure you have '/profiles' and '/layouts' in your '.forceignore'. This will ensure there are no errors, as the profiles reference objects that are not in its package. After the first initial push, comment it out: '#/profiles #/layouts', and then push one more time to get those profiles and layouts in your org. After that, it would be wise to comment them out again if needed so they are not overwritten needlessly.

Step 3: Back in VS Code, run the following command:

  • sfdx force:source:push -f

--- note the following is from iteration <5. You shouldn't run into this issue. --- added by Iteration 6

If you receive the error:

Change all occurrences of \ to /

  • sfdx force:source:push --forceoverwrite

TRIAL OF THE TITANS

├─Install Instructions
│   ├Site Setup
├─General Documentation
│   ├Data Modeling/Relationships
│         ├Data Model
│         ├Custom Objects & Fields
│   ├Issues & Suggestions
│         ├Known Issues
│         ├Data Model Issues & Suggestions
│   ├Dependency Chart
├─Resources
├─Package Overview
│   ├Trial of the Titans Package
│         ├QC Hub
│         ├Trainer Hub
│         ├Mock Interview
│   ├Chart Package Package
│   ├Hero Hub Package
│   ├Titan Hub Package
│   ├Exam Interview Package
│   ├Portfolio Hub Package
├─Archive

Clone this wiki locally