Introduction to Node.js
Explore the fundamentals of Node.js, its asynchronous event-driven model, and how it allows JavaScript to run outside the browser. Understand setting up Node.js and using the Express framework to create REST APIs and backend services.
We'll cover the following...
Overview
Node.js is a runtime environment that enables pure JavaScript code to run outside the web browser. In the earlier days of web development, back-end applications or codes that ran outside of a web browser were built on languages like Java or C++. JavaScript only ran on the web browser. In 2009, Ryan Dahl developed Node.js, which runs on the Chrome V8 engine and enables JavaScript to be executed outside a web browser.
The architecture for Node.js is event-driven, and it’s asynchronous in handling I/O operations. With Node.js, we can build web servers, develop command-line tools, and communicate with hardware, as seen in the development of microcontrollers and IoT-based systems.