Set up server module, shared module and global for server and client, and client file