I wanted to understand the overall architecture for designing single page application (mainly through JavaScript)
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.
How can I design such kind of page?