liveBook · Manning

JavaScript

As explained in Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform

JavaScript is a high-level programming language standardized as ECMAScript and commonly used for web and server-side development.

JavaScript can serve both a web frontend and backend microservices running on Node.js. Using one language makes it easier to move between those parts of an application, but microservices do not require JavaScript; each service could use another language. section 2.3 section 1.11

A first microservice

A small HTTP server streams video to a browser. Its JavaScript code runs as a Node.js project on a development computer, providing a starting point for building more services. section 2.0 section 2.5

For local work, edit the service in VS Code or another editor and run it with Node.js. Express.js handles incoming HTTP requests, while nodemon provides live reload for faster feedback. Development and production modes have different needs; environment variables configure the service. section 2.5 section 2.9

How Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform covers it

How deep it goes
Introduces Node.js basics through a simple service and local setup, but defers a full treatment of Node.js.
Examples
Uses a Node.js HTTP server that streams video to a browser and runs locally as a JavaScript project.
What it assumes
Assumes enough coding familiarity to follow a simple service while introducing Node.js basics and development-environment setup.
What you can do after
Apply it via Node.js to create a streaming-video HTTP microservice and run it in a local single-service environment.
How it connects
Connects JavaScript to Node.js, microservices, HTTP servers, web frontends, and Express.js.

Also explained in

Compare how 12 books explain JavaScript →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform. The section links point to the parts of the book it draws on.