Split app in common, client and server part