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) a
You may take inspiration from existing solutions that you can find over the web :