A comprehensive learning project covering core Node.js concepts and modules for backend development.
Introduction to Node.js basics
index.js- Basic Node.js setup and executionsum.js- Simple function module example
Understanding Node.js module system
first-module.js- Creating and exporting modulesindex.js- Importing and using moduleswrapper-demo.js- Demonstration of module wrapperwrapper-explorer.js- Exploring how Node.js wraps modules
Working with npm and packages
index.js- NPM package management examplespackage.json- Project dependencies and scripts
Working with file paths
index.js- Using Node.js path module for path operations
File system operations
index.js- Reading and writing filesdata/- Example data files for file operations
Building HTTP servers
server.js- Basic HTTP server implementationroutes.js- Routing logic for the server
Asynchronous programming with callbacks
index.js- Callback examplescallback-hell.js- Demonstrating callback hell probleminput.txt- Example input fileoutput.txt- Example output file
Working with Promises
index.js- Promise examples and handling
Modern async/await syntax
index.js- Async/await pattern examples
Event handling in Node.js
index.js- EventEmitter usagecustom-listener.js- Creating custom event listeners
- Clone or download this repository
- Navigate to any lesson folder
- Run the examples using Node.js:
node filename.js
Follow the lessons in numerical order to build a solid foundation in Node.js:
- Start with hello-world-node for basics
- Learn the module system
- Explore npm and package management
- Master file path handling
- Practice file system operations
- Build HTTP servers
- Master asynchronous patterns (callbacks → promises → async/await)
- Learn event handling
- Node.js (v12 or higher recommended)
- npm (comes with Node.js)
Each lesson can typically be run with:
cd "folder-name"
node index.js- Some files demonstrate problems (like callback-hell.js) to show why better patterns exist
- Examples build progressively in complexity
- Each module includes practical demonstrations