


This tutorial uses Node.js version 10.19.0. Ensure that Node.js is installed on your development machine.You will build web servers that can return JSON data, CSV files, and HTML web pages. In this tutorial, you will learn how to build web servers using the http module that’s included in Node.js. Having both the frontend and backend together like this reduces the effort it takes to make a web server, which is a major reason why Node.js is a popular choice for writing back-end code. Node.js allows developers to use JavaScript to write back-end code, even though traditionally it was used in the browser to write front-end code. Code that handles network requests from your browser or communicates with the database is primarily managed by back-end code. Back-end code is concerned with how data is exchanged, processed, and stored. Front-end code is concerned with how the content is presented, such as the color of a navigation bar and the text styling. This software generally falls into two categories: frontend and backend. A web server receives HTTP requests from a client, like your browser, and provides an HTTP response, like an HTML page or JSON from an API.Ī lot of software is involved for a server to return a webpage. That computer you are talking to via the internet is a web server. When you view a webpage in your browser, you are making a request to another computer on the internet, which then provides you the webpage as a response. The author selected the COVID-19 Relief Fund to receive a donation as part of the Write for DOnations program.
