For a better introduction to what a generator is and an example of how to build one visit the jsonblog-generator-boilerplate repo.

Boilerplate
by Thomas