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.gitSet 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
Make sure that MAMP is running on default ports. Go to Settings > Ports and click on "Set ports to 80, 81..."
Open MAMP and Create a New Host. Set Host name to:
sr-app-v2.localSet 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
Because we're using a self-signed SSL Certificate Chrome / Safari will warn you about the connection being unsafe. Click on advanced and Proceed to sr-app-v2.local (unsafe)
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.

Install a New Module (that's not on the master branch)
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