This project is heavily JavaScript-based. It uses Node.js, a JavaScript runtime environment, to run and build it. We'll need to install a few thing on our machine to work on this project.
Due to the architecture of this project, we will not be installing or using a database on our machine. Instead, this project uses a hosted service to provide content management system (CMS) functionality. This means less work for us!
The following setup only needs to happen on new machines once. Installation instructions need to be followed in the order they appear in this document.
We'll be installing the following software:
Some of these may already be installed on your computer, so we'll check if we can skip some steps in each section.
If Xcode Command Line Tools is already installed, you will be notified during the installation. Perform this section to ensure it is installed.
In order to install any dependencies, we'll need to first install Xcode Command Line Tools. Luckily, Apple makes this very easy.
In Terminal, run the following command:
xcode-select --installWhen the popup opens asking to install the command line developer tools, click Install. The installation will take some time.
Once the installation complete, we can move on.
To check if Homebrew is already installed, run the following command in Terminal:
which brewIf it outputs
/usr/local/bin/brew, you can skip this section.
Assuming we're on a Mac, install Homebrew, the most widely used package manager for macOS.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"You may get a few prompts during the installation. If it asks to install something, install it.
Once it's done installing, verify Homebrew installed successfully by checking where it's located on your computer.
which brewIf it outputs /usr/local/bin/brew, you're good to go!
To check if
nand Node.js are already installed, run the following command in Terminal:which nIf it outputs
/usr/local/bin/n, check if Node.js is installed:which nodeIf it outputs
/usr/local/bin/node, you can skip this section.
This project is heavily JavaScript based so it uses Node.js, a JavaScript runtime environment, to run and build it.
Using a version manager to install Node is the recommended approach. n is
a good one. We'll use Homebrew to install it.
brew install nOnce n is installed, use it to install and activate the latest version of
Node.js.
n latestOnce it's done installing, verify Node.js installed successfully by checking where it's located on your computer.
which nodeIf it outputs /usr/local/bin/node, you're good to go!
To check if Yarn is already installed, run the following command in Terminal:
which yarnIf it outputs
/usr/local/bin/yarn, you can skip this section.
Using Homebrew again, install Yarn, a JavaScript package manager used to install our project's dependencies.
brew install yarn --without-nodeThe --without-node option ensures Homebrew doesn't install Node.js again since
we already did so with n.
Once it's done installing, verify Yarn installed successfully by checking where it's located on your computer.
which yarnIf it outputs /usr/local/bin/yarn, you're good to go!
This project's code is version controlled using Git and hosted on
GitHub. Assuming we're on a Mac, git is already installed, but it's
an older version. Let's get the latest version using Homebrew.
brew install gitOnce it's done installing, verify Git installed successfully by checking where it's located on your computer.
which gitIf it outputs /usr/local/bin/git, you're good to go!
Congratulations, your computer is now setup to work on this project!