Learn Node.js
Run JavaScript on the server with Node.js. Learn what back-ends do, core modules like process, os, util, events, fs and streams, and build HTTP servers that route requests, read bodies and return JSON.
- Intermediate level
- 4 modules
- 34 lessons
- 160 tasks and questions
Syllabus
01What Is the Back-End?Get the big picture before writing server code: how browsers and servers divide the work, how data is stored and exchanged as JSON through APIs, and what else a back-end is responsible for, from authentication to validation.4 lessons
02Introduction to Node.jsRun JavaScript outside the browser with Node.js: how programs run, built-in core modules, your own modules with require and module.exports, and the console, process, os and util modules, plus npm and package.json.10 lessons
03Node.js EssentialsUse the core modules back-end code relies on: the events module, reading input and writing output, Node's error conventions, buffers of raw bytes, the file system, readable and writable streams, and Node's timers.10 lessons
04Setting Up a Server with HTTPBuild web servers with Node's http module: handle requests and send responses, parse URLs and query strings, route by method and path, pick the right status codes, read JSON request bodies, serve a small JSON API, and call other APIs from your server.10 lessons