In this Node.js Fundamentals video, we will clone a git repo with boilerplate files to get us up and running with a good set of core files that we’ll use for development. Then we’ll go in and make minor modifications to the files as needed for our new module.


  • Clone a git repo to get boilerplate
  • Edit some key files
  • Commit our changes

Video Info

  • Episode: CW V001
  • Skill level: Beginner
  • Prerequisites:
    • Basic Node.js knowledge
    • Basic Git
  • Published: May 5th, 2014
  • Tags: js, nodejs,git,boilerplate,hapi,plugin,free
  • Duration: 10:48
  • Node.js version: 0.10.25
  • Git version:


Why clone vs starting with empty folder?

Note while you can start out building a module from an empty folder, I have found that it much easier to just create yourself a boilerplate project which you can clone from. This lets you keep a up to date set of supporting files that you can quickly bring in and then you are bootstrapped and ready to develop.

In these instructions we will use my boilerplate repo bare-js, but you could easily substitute your own or fork mine.

Creating README first

  • Establish written goals
  • Create example API
  • Refine the API
  • Share with others

In the next video

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

Continue to the next video V002