code examples for WebApp production