Taking the fresh module workspace which we created in the previous video, we review the goals for the project, adjust the API in the README, and add some developer dependencies using npm so we are ready to begin our test driven development process.


  • Review project goals
  • Cleanup example
  • Install mocha and chai, commit
  • Install hapi

Video Info

  • Episode: CW V002
  • Skill level: Beginner with basic Node.js skills
  • Prerequisites:
    • Basic Node.js & npm
    • Basic Git
  • Published: May 6th, 2014
  • Tags: js, nodejs,git,hapi,plugin,free
  • Duration: 4:49
  • Node.js version: 0.10.25
  • Git version:


  • We will use a test driven development approach to building our plugin
  • Test runner will be mocha
  • Assertion library will be chaijs

In the next video

  • Create our first plugin test
  • Implement plugin registration

Continue to the next video V003