add basic server support
add a basic example.