Node.js Course — GameCode
Learn Node.js from scratch: the server-side JavaScript runtime. Understand the V8 engine and event loop, master sync vs async (callbacks, promises, async/await), modules and npm, the file system and streams, and build your first HTTP server from scratch. The solid foundation for any backend.
The First Threads
What is Node.js?
JavaScript Outside the Browser
Install Node and run your first script
The V8 Engine and How Node Executes Your Code
The console and process: talking to the system
Environment Variables and Arguments
What is the event loop? (intro)
Synchronous vs Asynchronous: Node's Big Idea
Node vs other server languages
The Node ecosystem: a map
The Loom of Modules
What is a Module
require and module.exports (CommonJS)
import/export (ES Modules)
Native Node Modules
package.json: the heart of the project
npm: the great package marketplace
Install, Update, and Remove Packages
Dependencies vs devDependencies
Semantic Versioning (semver)
node_modules and package-lock explained
The Threads of Time
Callbacks: the first async form
Callback hell and why it hurts
Promises: a promise of results
then, catch and chaining promises
async/await: async that reads easy
Handle errors in async code
The event loop in depth
setTimeout, setInterval and Timing
Promise.all and Running in Parallel
Common async Errors
The Forge of Systems
The fs module: reading and writing files
File paths with path
Async vs Sync File System
Streams: Processing Data in Chunks
Buffers: Raw Bytes
os and EventEmitter
process in depth (exit, env, argv)
child_process (concept)
Error Handling and try/catch
Build a Small CLI Tool
The Gates of the Kingdom
What is HTTP?
The http module: your first server
Request and Response in Depth
Routes and Methods by Hand
Sending HTML, JSON and status codes
Query params and headers
Reading the body of a POST
Serving Static Files
CORS explained easy
Why We Need a Framework