Setup SR App Locally

Clone SR App

Open SourceTree and go to File > New > Clone from URL. Set Source URL to

git@gitlab.com:lean-labs/sr-app-v2.git

Set Destination path to an empty folder where where you would like to save SR App, and set Name to SR App v2

Checkout LaunchPad Starter (submodules repo)

Open SourceTree, find Submodules in the sidebar and double click on launchpad-starter-v2 This will open a new SourceTree window. Under branches double click on master or any other branch you would like to checkout.

Setup MAMP

Open MAMP and Create a New Host. Set Host name to:

sr-app-v2.local

Set Document root to the folder where you've cloned the repo to and hit Create.

Click the SSL tab, check SSL and point Certificate file to oauth.local.crt and Certificate key file to oauth.local.key.

Set PHP version to 7.0.22. You can check / change the version on Languages (sidebar) > PHP. Hit save, start MAMP and go to https://sr-app-v2.local

If everything works well, you should see the login page.

Login with Your HubSpot Dev Account

Click on Authenticate and select the HubSpot portal you would like to use.

If it's a new portal, SR App will run through the setup wizard to install Launchpad Starter.

Install a New Module (that's not on the master branch)

Here's the confusing part: SR App is including the launchpad-starter-v2 repo which is including sr-templates

All modules are added to sr-templates but if you want to deploy a module that is not on the master branch you will need to checkout your dev branch.

Last updated