server and client code for the base app