Table of Contents
macOS or Linux recommended. [Here is a pretty solid setup guide][guide] (follow the instructions for Node.js and npm).
- Terminal
- git and GitHub account
- Node.js and npm
- Recommended: install Node via homebrew
- A text editor
- Recommended: atom
A local development server allows you to preview your site as you work on it.
Open Terminal
and navigate (cd
) to a directory where you'd like your projects to live, then:
$ git clone PASTE_THE_REPOSITORY_URL_FROM_GITHUB
- Create a local directory for the site and copy the files from GitHub to your computer$ cd sal-munoz-dot-com
- Navigate your terminal to the newly cloned repository$ npm install
- Install all the project's dependencies; could take a few minutes
Open Terminal
and navigate to the sal-munoz-dot-com
directory, then:
$ git pull
- Pulls the latest version of the site from github$ npm install
- Installs any new dependencies (only needed ifgit pull
updates the file calledpackage.json
)
Open Terminal
and navigate to the sal-munoz-dot-com
directory, then:
$ npm start
- Run thestart
script that launches the dev server- Navigate your browser to http://localhost:9966 to open the site preview
- To stop the server, open the Terminal window where you ran
npm start
and typectrl + c