The following guide documents some of the steps needed in order for this Notebook and node.js to run in your own environment.
Do take note that, this guide assumes that you are using Mac OSX Sierra upwards
Documented in: https://docs.brew.sh/Installation
Or just run:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Once Brew is installed, you may now install Git
brew install gitSince it is not recommended to use any system-wide node.js installation. Node Version Manager (NVM) will be used in order to install isolated environments of node.js in your machine. This is documented in: https://github.com/creationix/nvm
Or just run:
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bashIf your machine doesn't have wget installed:
curl -O https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bashNow with NVM installed, you may now install node.js its Node Package Manager. NPM is needed in order to pull third-party libraries.
As of this writing, the latest stable version of node.js is v8.11.4
nvm install v8.11.4
nvm use v8.11.4The commands above will install node.js and the corresponding NPM version for that distribution. This can be verified by:
nvm lsSince we are trying to learn the basics, it is recommended to use the simplest editor there is. We recommend that you install SublimeText
The documentation for this training is written using gitbook (https://www.gitbook.com). Here's the steps required in order to run this on your local computer:
cd ~/
git clone git@github.com:adelagon/javascript-nodejs-gitbook.git
cd nodejs-qe-gitbook
npm install
npm startThe notebook will then be accessible on your browser on: http://localhost:4000