mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 09:41:26 -08:00
2.4 KiB
2.4 KiB
Installing the Justice40 Tool
Required Software
- git, node, yarn and an IDE
Install Git
MacOS
- Open the terminal and type
git
and hit RETURN. - If dev tools are not installed a window will prompt you to install dev tools.
- Open the terminal and type
git --version
and hit RETURN. - Validate that a version number is returned. If so, git is properly installed.
Win10
Download from website
Install Homebrew (MacOS only)
- Open the terminal and copy / paste this command and hit RETURN.
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- Validate installation by typing
brew -v
in the terminal and ensure a version number is shown.
Install Node using NVM
This will work for both MacOS and Win10. Follow instructions on this link
Install Yarn
- This is for both MacOS and Win10
- Note that while this app uses npm as the package manager, yarn is required to build the uswds library.
Open the terminal and type sudo npm install -global yarn
and hit RETURN.
- Type
yarn -v
and hit RETURN - Verify a version number is shown
IDE set up
While any IDE can be used, we're outlining how to set up VS Code
- Open the terminal and type
brew install --cask visual-studio-code
and hit RETURN.- If this doesn't work or for Win10, you can download VS Code from the website.
- After forking this repo, you can clone your forked repo into VS Code
- VS Code with prompt you to "clone a repo"
- 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