Overview
Day 71 marks the beginning of the backend journey. Today's focus: understanding what Node.js is, how npm works, and how to work with basic modules. Also created the first Express server.
What I Learned Today
- What Node.js is and why it's used in backend development
- How npm works and how to initialize a project
- How to install and use packages
- Understanding CommonJS modules (require, module.exports)
- How to create a simple Express server
Key Concepts
Node.js
- JavaScript runtime that allows JS to run outside the browser
- Built on Chrome's V8 engine
npm (Node Package Manager)
- Helps install external libraries
- Command:
npm init -y
- Install a package:
npm install express
Modules
- Import module:
const express = require("express")