Installing Open Social using Composer on a Mac

I had to install Open Social somehow onto my local computer server, aka, local host, but there were not that many tutorials online or guidelines. Many of them required extra steps or didn’t even explain the essential steps clearly. So I will be talking about how I installed Open Social.

The first step is to install Acquia Dev Desktop and Git, if you have not already.
Then I went to https://github.com/goalgorilla/social_template, which is a link to goal gorilla, the people to seemed to have created composer. Download the file, social_template. You can and should move this file to a location on your computer which you will remember and not delete.
Then, using terminal, cd into that directory and the last command you should have will be along the lines of, “cd social_template-master”. This should take you into the folder you have just downloaded.
Now, use https://getcomposer.org/download/, or more specifically

php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);”
php -r “if (hash_file(‘SHA384’, ‘composer-setup.php’) === ‘669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;”
php composer-setup.php
php -r “unlink(‘composer-setup.php’);”

Use these lines to install the composer setup file. The link above will explain the purpose of each line. Once you have run these lines in terminal, look back into the social_template-master file and you should see a new, composer.phar file.
The last step to getting open social files is to run
composer create-project goalgorilla/social_template:dev-master DIRECTORY –no-interaction
In terminal. You should still be in the folder social_template-master. Now two more folders should show up, html and vendor. Theoretically, it should appear in a folder called DIRECTORY or DIR, but it didn’t for me. The next step is to use Acquia Dev Desktop. On the bottom left of the Acquia Dev Desktop, there should be a button saying, import local Drupal site, click that and then where it says select Drupal site codebase, click “Change”. Find the new html folder we just got and make that the codebase. Select the version of php and the database, if you have a pre-existing one or just leave it on “Create new database”.

Then, clink the link next to local site and the installation for Open Social should appear. Follow that as you would for a normal drupal install and that’s it.