Beginner → Intermediate 7 lessons · free · no sign-up
Node.js tutorial Backend JavaScript and REST APIs.
Node.js & Express — build REST APIs and backend services with JavaScript. Every lesson has complete code with the output you'll see when you run it, key points, a practice task, a quiz and interview questions.
Start learning Node.js
Not started
- 7lessons
- 7quick checks
- 14interview Q&As
- 7practice tasks
Syllabus
What you'll learn
Every lesson has a worked example, key points, a quick check, a practice task and interview questions.
- 01Node.js introductionWhat Node.js is, why companies use it, installing it and running your first script.
- 02Modules & npmSplitting code into modules with import/export, package.json and installing packages.
- 03Async code: callbacks, promises & async/awaitHow Node handles slow work, the event loop, and writing clean async code with async/await.
- 04Files, paths & the HTTP moduleReading and writing files with fs/promises, building paths safely and a basic HTTP server.
- 05Express: routes & middlewareCreating an Express app, route parameters, query strings, JSON bodies and middleware.
- 06Build a REST API (CRUD)Create, read, update and delete with Express routers, validation and correct status codes.
- 07Databases, errors & JWT authConnecting to a database, central error handling, environment secrets and protecting routes with JWT.