title: Architecture for single page application (JavaScript)
body: <p>I wanted to understand the overall architecture for designing single page application (mainly through JavaScript)</p>
  
  <p>Let's say I have a login page (Usernam/Password) and on successful authentication, I am shown the homepage. Now both the login and homepage screens should actually be part of a single page.</p>
  
  <p>How can I design such kind of page? </p>