Make sure you MongoDB running on your system. For example, on Ubuntu, type
apt-get install mongodb
Download the content:
cd scraper
npm install # downloads dependencies for scrapers
(cd css-mdn; ./run.sh)
(cd css-cssinfos; ./run.sh)
(cd html-mdn; ./run.sh)
(cd js-mdn; node scrape.js)
(cd dom-mdn node scrape.js)
Run the server:
npm install # downloads dependencies for web server
node web.js
Open http://localhost:5000/ in your browser.
How to use the r.js optimizer:
node node_modules/requirejs/bin/r.js -o static/js/app.build.js
Make sure the node server is serving the correct static folder (whether you want /static or /static-build).