async function generate (ctx) {
  try {
    let zipFile = await generator(ctx.request.body, ROOT_DIR)
    if (zipFile) {
      console.log('> Download -> ' + zipFile)
      ctx.response.status = 200
      ctx.response.type = 'zip'
      ctx.response.body = fs.createReadStream(zipFile)
    }
  } catch (e) {
    console.error('\n> Could not complete the project generation...\n' + e)
    process.exit(1)
  }
}
Generates a full vue application from a scaffold project,
plus the app definition sent in the ctx.request.body

@param {object} ctx : KoaContext object
@param {object} ctx.request.body : Body of the POST request

@return {zipFile} : A zip file with the generated application should be served

@see {@link http://koajs.com/#context|Koa Context}