Foundations
Node.js · Beginner - the basics, step by step
- What is Node.js? Install it and run your first scriptYou understand what Node.js is, install it on your machine, and run your first JavaScript script outside the browser.
- ES modules and npm: organizing your projectYou structure a Node project with package.json, ES modules, npm dependencies, and scripts.
- The file system: reading and writing with fs/promisesYou read and write files with the fs/promises module and build reliable paths thanks to the path module.
- Command-line scripts: arguments, environment, and exit codesYou write scripts that receive arguments with process.argv, read environment variables, and return an exit code.
- Your first native HTTP serverYou create a web server with Node's http module, respond to requests, and return JSON.