-
Log into your staging/demo account in Yardstik
-
Navigate to the Developer page and select API Keys
-
Enter the
Namefor the API key and click theCreatebutton -
Paste the API key somewhere safe as it will not be displayed again.
-
Once the key is pasted somewhere safe, you can click the green
I have copied my API keybutton -
Create a
.envfile on the root of the project based on the.env.example, then update it to include theYARDSTIK_ACCOUNT_ID,YARDSTIK_REPORT_ID, andYARDSTIK_ACCOUNT_EMAIL. -
Set the
YARDSTIK_API_KEYenvironment variable with the api-key you created inGetting Startedsection. -
Set the
YARDSTIK_API_URLenvironment variable tohttps://api.yardstik-staging.com. -
Run
yarn serverto start up the back end. -
Run
yarn startto start up the front end. -
Or
yarn start:allto start up both server and client
- The demo contemplates connecting with the Yardstik staging API (see step 9 above). Therefore, the
YARDSTIK_API_KEY,YARDSTIK_ACCOUNT_IDand other variables must relate to your staging/demo account. - The
YARDSTIK_API_KEYmust belong to account specified inYARDSTIK_ACCOUNT_ID - The
YARDSTIK_ACCOUNT_EMAILmust be associated with the account specified inYARDSTIK_ACCOUNT_ID - The account specified in
YARDSTIK_ACCOUNT_IDmust be authorized to view the report for the providedYARDSTIK_REPORT_ID. - Legal documents will only appear if they are required on your account but have not yet been provided.
-
View a candidate report by click on the "Candidate Report" tab in the nav bar:
-
View/sign account disclosures by clicking on the "Account Disclosures" tab in the nav bar:
- In addition to testing the Yardstik Embeddable-SDK library, this demo app can also be used to view any other URL that does not require authentication in an iFrame.
- If you have a URL that you would like to view in an iFrame (such as a URL for the candidate intake form), set the the
SIMPLE_IFRAME_URLvariable in the constants.js file to equal such URL. - View the URL in an iframe by clicking on the "Simple IFrame" tab in the nav bar.
- If you view the candidate intake form in the "Simple IFrame" tab, the page will listen for a message posted by the form on completion, and console.log "message received" upon receipt of the message.





