To start, we’ll need to set up the app environment:

1. Templating The SB Sample Extension

Welcome to the world of creating Apps for the Smart Builder!

This repository is a template repository, so please click "Use this template" as shown in the image below:

185502617-43839aae-aebc-48fe-9837-0ed1686ac9a8.png

<aside> 💡 IMPORTANT! Please keep the repository visibility as "public" upon initial creation. You will run a script that will change the visibility of this private later. This is because the script first handles branch protection rules, but GitHub API does not allow you to do so unless the repository is public even with a Personal Access Token.

Example:

185502852-2072fcdd-bafd-4da6-9131-028dec2122a6.png

</aside>

After you have created your repository, clone it to your local computer by running git clone [email protected]:{your-github-accoint}/{your-app-repository}.git.

App Repo Setup For Code Reviews

For your App to be reviewed by our team, you’ll need to complete these steps.

  1. Run npm run init-repo-settings. This will run a script that will prompt you for your GitHub username, repository name, and Personal Access Token.

To generate a Personal Access Token:

What does the script do? If you are familiar with bash scripts, you can check it out at bin/update-repo-branch-settings.sh.

The script does the following: