Skip to content

Latest commit

 

History

History
176 lines (127 loc) · 4.32 KB

File metadata and controls

176 lines (127 loc) · 4.32 KB

Development Environment

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.

Overview

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.

Install Xcode Command Line Tools

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 --install

When 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.

Install Homebrew

To check if Homebrew is already installed, run the following command in Terminal:

which brew

If 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 brew

If it outputs /usr/local/bin/brew, you're good to go!

Install Node.js

To check if n and Node.js are already installed, run the following command in Terminal:

which n

If it outputs /usr/local/bin/n, check if Node.js is installed:

which node

If 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 n

Once n is installed, use it to install and activate the latest version of Node.js.

n latest

Once it's done installing, verify Node.js installed successfully by checking where it's located on your computer.

which node

If it outputs /usr/local/bin/node, you're good to go!

Install Yarn

To check if Yarn is already installed, run the following command in Terminal:

which yarn

If 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-node

The --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 yarn

If it outputs /usr/local/bin/yarn, you're good to go!

Install Git

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 git

Once it's done installing, verify Git installed successfully by checking where it's located on your computer.

which git

If it outputs /usr/local/bin/git, you're good to go!

Wrap Up

Congratulations, your computer is now setup to work on this project!