This page documents the installation steps for some of the prerequisite software needed to work with this project. It covers steps for macOS and Win10. If you are not on either of those platforms, install the software using steps appropriate for your operating system and device.
💡 NOTE
If all you want to do is try out the application locally, visitQUICKSTART.md
.
There are several prerequisites necessary for downloading the source code and creating the environment necessary to run both the Frontend Client and the Data Pipeline and Scoring Application.
Our project is hosted on Github, and can be forked using Git. You can use Git via the command line or any number of first or third party visual clients (the scope of which is beyond these instructions).
To install Git on macOS,
- Open the terminal, type
git
, and press return - If dev tools are not installed, a window will prompt you to install dev tools. Follow those instructions to complete the installation
- Once dev tools are installed, open the terminal, type
git --version
, and press return - Validate that a version number is returned (e.g.
git version 2.37.1
). If a version number is returned, Git is properly installed
On Win10, download and install Git following the instructions on git-scm.com.
Homebrew is an easy way to manage software packages on macOS. Homebrew is not a requirement. However, we recommend it, and our installation instructions will assume you have Homebrew installed.
- Open your terminal and run
brew -v
to determine whether you have Homebrew installed. If you get a response that looks something likeHomebrew 3.1.9
, you've already got it! If you get nothing back, or an error, continue with these instructions. - Follow the instructions on the Homebrew home page to install Homebrew on your machine.
- Validate installation by typing
brew -v
in the terminal; ensure a version number – like in step 1 – is shown.
Don't forget to regularly run brew update
and brew doctor
to make sure your packages are up to date and in good condition.
Node version manager (nvm) allows you to install, manage, and use different Node.js versions on your machine. It's our preferred method to install Node.js.
Follow these instructions to install nvm. Be sure to read through all of the instructions to find the sections within each step relevant to you (e.g. if you're using Homebrew, when you get to Step 2 look for the section titled Install NVM with Homebrew).
💡 NOTE
If you install nvm using Homebrew, make sure to read the terminal output. There are additional installation instructions you must follow (such as adding lines to your bash or zsh profile).
Once you've completed the nvm installation, use nvm to install Node.js version 14.
nvm install 14
You should then be able to switch to that version of Node.js through the command:
nvm use 14
To validate you are using Node.js 14, type:
node -v
This should return something like v14.x.x
.
While any IDE can be used to contribute to this project, many of our developers use Visual Studio Code (VS Code). Because of this, we've included a few VS Code configurations to make it easier to develop the data pipeline.
- On macOS 🍎, open the terminal and type
brew install --cask visual-studio-code
and press return. If this doesn't work – or you're using Win10 🪟 – you can download and install VS Code directly. - After forking this repo, you can clone your forked repo into VS Code.
To use the client in VS Code,
- Open the terminal and navigate to
client
directory - Type
npm install
to load dependencies - Type
gatsby develop
to spin up the app - Navigate to
localhost:8000
to view the app
We recommend the following VS Code Extensions:
Using Docker is optional; the Frontend Client and the Data Pipeline and Scoring Application can be run without Docker. If you wish to install Docker, follow the Docker installation instructions for your platform.
After you've completed the prerequisites, you can continue on to specific installation steps for the part of the platform you're interested in exploring.
Platform | Instructions |
---|---|
Frontend Client | Frontend Client Instructions |
Data Pipeline and Scoring Application | Data Pipeline Instructions |
Deployment Process | Github Workflows README |