💡 A beginner-friendly repository to learn Node.js fundamentals, core concepts, and backend basics in a simple and structured way.
🟢 Node.js is a JavaScript runtime built on Chrome's V8 engine 🟢 It allows JavaScript to run outside the browser (server-side) 🟢 Used to build fast, scalable network applications
In 2009, Ryan Dahl created Node.js with the idea:
“Why not run JavaScript outside the browser?”
He used the V8 Engine (C++) to execute JavaScript on the server — and Node.js was born 🚀
-
JavaScript engine developed by Chrome
-
Converts JavaScript into machine code
-
Other engines:
- Firefox → SpiderMonkey
- Edge → Chakra
- ⚡ I/O bound applications
- 📡 Real-time chat apps
- 📊 Data streaming apps
- 🌐 APIs & backend services
Download Node.js 👉 https://nodejs.org/en/download/
Install it
Verify installation
node -v
npm -v- 📚 Largest software registry in the world
- 📥 Install packages easily
- ⚙️ Manage dependencies
npm install express-
Introduced in 2015
-
Adds features like:
- Arrow functions ➡️
- let / const
- Promises
- Modules
Node.js provides an interactive shell:
- R → Read input
- E → Evaluate
- P → Print output
- L → Loop
- Run JS expressions
- Use variables
- Multiline code
_→ last result
.help # Show help
.editor # Enter editor modeNode.js provides built-in modules:
fs→ File systemhttp→ Web serverpath→ File pathsevents→ Event handling
Node.js can create its own web server:
const http = require('http');
http.createServer((req, res) => {
res.write("Hello World");
res.end();
}).listen(3000);- Lightweight data format
- Used for data exchange
- Common in APIs
-
Allows communication between applications
-
Used in:
- Web apps
- Mobile apps
- Services
Node.js is event-driven
const EventEmitter = require('events');
const event = new EventEmitter();
event.on('sayHello', () => {
console.log('Hello World!');
});
event.emit('sayHello');Streams handle data efficiently:
- Readable
- Writable
- Duplex
- Transform
👉 Used in real-time processing (video, audio, etc.)
ctrl + ` # Open terminal
dir # List files
cd .. # Go back
mkdir folder # Create folder
node app.js # Run file
nodemon app.js # Auto restart serverThis project was created to:
- Learn Node.js fundamentals
- Understand backend development basics
- Build a strong foundation for full-stack development
- Add Express.js examples
- Add REST API projects
- Add MongoDB integration
- Convert into full backend course
This repository reflects my early journey into backend development using Node.js.
Sastik Kumar Das
If you find this helpful, give it a ⭐ on GitHub!