The site works under MacOS and Unix systems, but not on Windows, because many 3rd party modules are not compatible with Windows.
Create a folder /js for the project. You can use any other directory as well, just adjust the paths below.
Node.JS – the last version from https://nodejs.org.
MongoDB - can be either 2.6+ or newer.
Use packages for Linux, MacPorts or Homebrew for Mac.
If you have macports then:
sudo port install mongodb
sudo port load mongodb
Hopefully, you have Git installed and running.
Clone the tutorial server:
cd /js
git clone https://github.com/iliakan/javascript-tutorial-server
Install these:
npm install -g mocha bunyan gulp nodemon
To set up NODE_PATH environment variable, further on we use an alias for running gulp:
alias glp="npm --silent run gulp -- "
Or, without the alias, you can run gulp as: NODE_PATH=./handlers:./modules gulp ....
Or like this: npm --silent run gulp -- ....
You'll also need to install GraphicsMagick (for image resizing).
For MacPorts, the commands are:
sudo port install GraphicsMagick
In the directory with javascript-tutorial-server, run:
npm install
Run the site with the language in NODE_LANG variable:
./dev en
Then access the site at http://127.0.0.1.
If you have 127.0.0.1 javascript.local in /etc/hosts, then the address will be http://javascript.local.
Wait for a couple of seconds to build static assets.
In "Edit" mode the engine watches the tutorial directory, instantly picks the changes and reloads the page. Good for editing.
./edit en
If something doesn't work -- file an issue.