code a server demo