concept front - end in category docker

This is an excerpt from Manning's book Bootstrapping Microservices with Docker, Kubernetes and Terraform.
Testing is a huge topic, so let’s start by looking at some simpler examples that aren’t directly related to microservices. The code we’ll look at in this section is generally applicable for testing JavaScript code, regardless of whether that code is in a front-end, a back-end or even in a mobile or desktop application!
Why not use one of the popular modern SPA frameworks? Well the simple reason is that it’s outside the scope of this book. This book isn’t about user interfaces and that’s why the front-end is as simple as it can be. (Besides that I didn’t want to choose sides and stoke the war between the SPA framework disciples).
Listing 9.6 is an extract from the gateway microservice’s main code file. It shows the HTTP GET route that renders the main page. The main page shows the list of uploaded videos. So this route handler starts by requesting data from the metadata microservice. We then render the web page using the video-list template and input the list of videos as the template’s data.