Server Side Code
A website’s code is broadly structured as server-side code and client-side code. For websites having a Model-View-Controller architecture, the server-side code determines what content to display on a web page. In an MVC web application, the View Controller script processes the web page URL and displays the web page associated with that particular URL route.
Most web pages on the internet are dynamic. Dynamic web pages are comprised of different elements that are combined on the server side before being rendered on the browser. The page need not exist as a static HTML file inside a database. Popular server-side scripting languages include Node.js, Django framework for Python, Ruby on Rails, PHP and ASP.NET.
However, sensitive and confidential information should not be stored on the client-side. Because of this, most modern web applications comprise an SPA for rendering the web page, and server-side code for passing data to the interface. The SPA and server-side code communicate with each other using APIs. In such a scenario the server-side code is organized according to a microservices architecture.