Learn backend development with Node.js - the event loop, modules, the Express framework, REST APIs, and databases.
What Is Node.js and How to Install It Node.js is a JavaScript runtime built on Chrome's V8 engine. It runs JavaScript outside the browser, so the same language you know from the ...
The Event Loop and Non-Blocking I/O Node uses a single main thread with an event loop underneath. Understanding this model explains why Node handles many connections with little ...
Modules and npm Modules split code into reusable files, and npm shares those modules across the ecosystem. Together they are how Node projects stay organized. Exporting and ...
Built-In Modules: fs, path, http Node ships with a standard library covering files, paths, and networking. Three modules appear in almost every project: fs, path, and http. fs for ...
Express Basics and Routing Express is the most popular web framework for Node.js. It layers routing, middleware, and helpers on top of the http module so building servers feels ...
Middleware in Express Middleware are functions that run in order between a request arriving and the final response. They can transform the request, short-circuit it, or run side ...
REST APIs with Express A REST API exposes resources over HTTP so clients can create, read, update, and delete data. Express maps those operations to routes in a natural way. The ...
Working with JSON and Request Bodies Most modern clients talk to APIs in JSON. Express parses incoming JSON for you when you mount the json middleware, and res.json writes JSON ...
Connecting to MongoDB with Mongoose MongoDB stores documents as JSON-like objects, and Mongoose adds schemas and modeling on top of the Node driver. This combination is a common ...
Deploying a Node App: Environment Variables and PM2 A deploy-ready app reads its configuration from the environment, runs with a process manager, and logs clearly. This lesson ...