Skip to content

Comment on Show HN: Serverless boilerplate to get started quickly

Comments

I think you should just have your boilerplate set up middy with your middleware, that is the point of a boilerplate project after all.

You are depending on your own 'handly' project 'based on' middy but its really just middy without the option to pick what middlewares you want.

your readme for handly says to

  import handly
  const handler = /* a handler */
  export handly(handler)
where handly is essentially
  import middy
  const handly = handler => middy(handler).use(/*a bunch of middleware*/
  export handly
I don't speak for the middy project and I don't know how long you have been developer so I don't want to discourage you too much, but that seemed a little off.

unrelated: I tried to check out your website and got a certificate error.

Actually handly is just here to allow a single import on every serverless handler. I haven't worked much on the readme yet, but the idea is to gather all the "mandatory" middy middlewares as well as some middlewares I find necessary into a single dependancy.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.