how to build a stateless web application