Hook up client in generated apps