title: How to build front end for Microservices
body: <p>Let's say I have a dozen microservices. I am wondering where should the front end go. Let's say front end is HTML, Javascript, CSS. One way is to make it a separate service handled by a UI team. So it can form the API gateway where the request from browser comes in first. But this seems against the idea of independent self contained services.<br>
  browser ------> API Gateway ------> Microservices
  <br>
  In <a href="https://technologyconversations.com/2015/08/09/including-front-end-web-components-into-microservices/" rel="noreferrer">this</a> link, they say that Javascript and CSS should be served by microservices. API gateway should serve only the HTML page. THere is a nice diagram showing this >>
  <a href="https://i.stack.imgur.com/1suda.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1suda.png" alt="microservices with UI"></a>
  I have two questions<br>
  1. How will this be implemented? How will API gateway serve the JS and CSS files in microservices, and maybe HTML fragments too. How will initial page load happen and from where.<br>
  2. Now we are mingling HTML into microservices. But what if I want to serve Android and iOS apps too? THanks.</p>