NicoleRauch / NodeTestingTechniques

Slides and examples for the talk "Advanced Testing Techniques for Node.js"
0 stars 0 forks source link

Node Testing Techniques

Here you find the slides and source code for the workshop.

How to run the code

You need node.js as a JavaScript runtime. With it comes the package manager npm. Some of the modules have native C-dependencies so you will also need a C-compiler to get up and running.

Prerequesites

Set-Up our modules

  1. Install node.js and mongodb
  2. Check installation by running node --version and mongo
  3. Clone the repository
  4. Inside the folder sources you will find some JavaScript projects, each with two subdirectories problem and solution.
  5. Globally install grunt via npm install -g grunt-cli.
  6. In each project run npm install.
  7. You can check the installation by running grunt from the commandline. No arguments required.
  8. If the tests succeed you can usually start the app vie node start

How to watch the slides

The slides are created as html-slides based on the great work reveal.js by Hakim El Hattab

  1. Clone the project https://github.com/hakimel/reveal.js.
  2. Copy the files and folders inside slides to the root directory of reveal.js - or
  3. Make symlinks to those files
  4. Open the file slides.html
  5. Have fun