A boilerplate for building applications with a middleend