Opinionated boilerplate to unify server and client side code