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 lessons1-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 browserThe process objectRunning node⚡ +10
    ▶ Now
  2. 02

    process.argv — command line arguments

    process.argvArgument stringargv[2]⚡ +10
    Open
  3. 03

    process.env — environment variables

    process.envConfigurationThe .env file⚡ +10
    Open
  4. 04

    Timers: setTimeout and setInterval

    setTimeoutsetIntervalclearInterval⚡ +10
    🔒 Pro
  5. 05

    Async/await and Promise basics

    Promiseasync functionawait⚡ +10
    🔒 Pro
02

Модули и npm

0 / 5 lessons
  1. 06

    CommonJS modules: require

    module.exportsrequireCommonJS⚡ +10
    🔒 Pro
  2. 07

    ES Modules: import / export

    exportimporttype: module⚡ +10
    🔒 Pro
  3. 08

    npm and package.json

    npm initdependenciesscripts⚡ +10
    🔒 Pro
  4. 09

    Built-in modules: os, path, url

    node:osnode:pathnode:url⚡ +10
    🔒 Pro
  5. 10

    nodemon — automatic restart

    nodemonscripts in package.jsondev mode⚡ +10
    🔒 Pro
03

Файлы и пути

0 / 5 lessons
  1. 11

    fs.readFileSync — reading a file synchronously

    The fs modulereadFileSyncutf-8 encoding⚡ +10
    🔒 Pro
  2. 12

    fs.writeFileSync — writing to a file

    writeFileSyncOverwriting a fileappendFileSync⚡ +10
    🔒 Pro
  3. 13

    fs.promises — asynchronous file operations

    fs.promisesasync/awaitreadFile writeFile⚡ +10
    🔒 Pro
  4. 14

    path.join, path.resolve, __dirname

    path.joinpath.resolve__dirname⚡ +10
    🔒 Pro
  5. 15

    fs.readdirSync — reading directory contents

    readdirSyncexistsSyncFile list⚡ +10
    🔒 Pro
04

HTTP-сервер

0 / 4 lessons
  1. 16

    http.createServer — your first server

    createServerreq and res objectslisten port⚡ +10
    🔒 Pro
  2. 17

    res.writeHead — status code and headers

    writeHeadHTTP status codeContent-Type⚡ +10
    🔒 Pro
  3. 18

    Routing via req.url and req.method

    req.urlreq.methodRouting⚡ +10
    🔒 Pro
  4. 19

    JSON response — the basis of an API

    JSON.stringifyapplication/jsonAPI response⚡ +10
    🔒 Pro
05

Фреймворк Express

0 / 5 lessons
  1. 20

    Installing Express and your first server

    installing expressapp.listenapp.get⚡ +10
    🔒 Pro
  2. 21

    Creating multiple routes

    Multiple routesapp.postres.json⚡ +10
    🔒 Pro
  3. 22

    Route parameters: req.params

    req.paramsThe :id parameterDynamic route⚡ +10
    🔒 Pro
  4. 23

    Query parameters: req.query

    req.queryQuery stringURL filters⚡ +10
    🔒 Pro
  5. 24

    express.Router — modular routes

    express.Routerrouter.getapp.use⚡ +10
    🔒 Pro
06

Middleware и JSON

0 / 3 lessons
  1. 25

    What is middleware: the next() function

    MiddlewareThe next() functionapp.use⚡ +10
    🔒 Pro
  2. 26

    express.json() — reading the JSON body

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

    Error-handling middleware

    Error middlewareThe err parameter500 status⚡ +10
    🔒 Pro
07

Проект REST API

0 / 3 lessons
  1. 28

    In-memory data: CRUD basics

    CRUDArray as a databaseGET POST DELETE⚡ +10
    🔒 Pro
  2. 29

    PUT and DELETE: updating and deleting a resource

    app.putapp.deleteArray.findIndex⚡ +10
    🔒 Pro
  3. 30

    Mini project: a full REST API

    Full CRUDexpress.RouterPort env
    Course complete
    🔒 Pro
Node.js + Express — online coding course