Nd
💻 For developers

Node.js + Express

JavaScript on the server: REST API, routes, middleware

What you'll build
📘A solid foundation
⚡Practice in the browser
🎯Mini-projects
🎓Course certificate
📘 30 lessons⏱ 1-2 evenings🎓 Advanced
🎯 Mission
Master Node.js + Express
⚡+350XP
🏆CertificatePDF
🎓Course complete
Progress0 / 30 · 0%
Next up: What is Node.js

Course program

01

Основы Node.js

0 / 5 lessons
⌄
  1. 01

    What is Node.js

    JS without a browser•The process object•Running node⚡ +10
    ▶ Now
  2. 02

    process.argv — command line arguments

    process.argv•Argument string•argv[2]⚡ +10
    Open
  3. 03

    process.env — environment variables

    process.env•Configuration•The .env file⚡ +10
    Open
  4. 04

    Timers: setTimeout and setInterval

    setTimeout•setInterval•clearInterval⚡ +10
    🔒 Pro
  5. 05

    Async/await and Promise basics

    Promise•async function•await⚡ +10
    🔒 Pro
02

Модули и npm

0 / 5 lessons
⌄
  1. 06

    CommonJS modules: require

    module.exports•require•CommonJS⚡ +10
    🔒 Pro
  2. 07

    ES Modules: import / export

    export•import•type: module⚡ +10
    🔒 Pro
  3. 08

    npm and package.json

    npm init•dependencies•scripts⚡ +10
    🔒 Pro
  4. 09

    Built-in modules: os, path, url

    node:os•node:path•node:url⚡ +10
    🔒 Pro
  5. 10

    nodemon — automatic restart

    nodemon•scripts in package.json•dev mode⚡ +10
    🔒 Pro
03

Файлы и пути

0 / 5 lessons
⌄
  1. 11

    fs.readFileSync — reading a file synchronously

    The fs module•readFileSync•utf-8 encoding⚡ +10
    🔒 Pro
  2. 12

    fs.writeFileSync — writing to a file

    writeFileSync•Overwriting a file•appendFileSync⚡ +10
    🔒 Pro
  3. 13

    fs.promises — asynchronous file operations

    fs.promises•async/await•readFile writeFile⚡ +10
    🔒 Pro
  4. 14

    path.join, path.resolve, __dirname

    path.join•path.resolve•__dirname⚡ +10
    🔒 Pro
  5. 15

    fs.readdirSync — reading directory contents

    readdirSync•existsSync•File list⚡ +10
    🔒 Pro
04

HTTP-сервер

0 / 4 lessons
⌄
  1. 16

    http.createServer — your first server

    createServer•req and res objects•listen port⚡ +10
    🔒 Pro
  2. 17

    res.writeHead — status code and headers

    writeHead•HTTP status code•Content-Type⚡ +10
    🔒 Pro
  3. 18

    Routing via req.url and req.method

    req.url•req.method•Routing⚡ +10
    🔒 Pro
  4. 19

    JSON response — the basis of an API

    JSON.stringify•application/json•API response⚡ +10
    🔒 Pro
05

Фреймворк Express

0 / 5 lessons
⌄
  1. 20

    Installing Express and your first server

    installing express•app.listen•app.get⚡ +10
    🔒 Pro
  2. 21

    Creating multiple routes

    Multiple routes•app.post•res.json⚡ +10
    🔒 Pro
  3. 22

    Route parameters: req.params

    req.params•The :id parameter•Dynamic route⚡ +10
    🔒 Pro
  4. 23

    Query parameters: req.query

    req.query•Query string•URL filters⚡ +10
    🔒 Pro
  5. 24

    express.Router — modular routes

    express.Router•router.get•app.use⚡ +10
    🔒 Pro
06

Middleware и JSON

0 / 3 lessons
⌄
  1. 25

    What is middleware: the next() function

    Middleware•The next() function•app.use⚡ +10
    🔒 Pro
  2. 26

    express.json() — reading the JSON body

    express.json()•req.body•POST body⚡ +10
    🔒 Pro
  3. 27

    Error-handling middleware

    Error middleware•The err parameter•500 status⚡ +10
    🔒 Pro
07

Проект REST API

0 / 3 lessons
⌄
  1. 28

    In-memory data: CRUD basics

    CRUD•Array as a database•GET POST DELETE⚡ +10
    🔒 Pro
  2. 29

    PUT and DELETE: updating and deleting a resource

    app.put•app.delete•Array.findIndex⚡ +10
    🔒 Pro
  3. 30

    Mini project: a full REST API

    Full CRUD•express.Router•Port env
    Course complete
    🔒 Pro