This course is designed for programmers who want to use JavaScript server-side, either for creating interactive server-side applications or for creating REST APIs. Participants will learn about request processing using middleware functions, [...]
  • JS_EXPRESS1
  • Duration 5 days
  • 50 ITK points
  • 0 terms
  • Praha (38 500 Kč)

    Brno (38 500 Kč)

    Bratislava (1 650 €)

  • Intermediate

This course is designed for programmers who want to use JavaScript server-side, either for creating interactive server-side applications or for creating REST APIs. Participants will learn about request processing using middleware functions, creating server-side HTML applications, and creating REST APIs. The course assumes knowledge of HTML at the [HTMLCSS] course level and moderately advanced JavaScript programming at the [JS_PROG2] course level.

»
  • Intermediate JS programmers who want to use server-side JavaScript
  • The basic Request/Response model in Express
  • Routing
  • Working with middlewares
  • Template libraries for HTML
  • Creating and consuming REST APIs
  • Knowledge of HTML at course level [HTMLCSS].
  • Course-level knowledge of JavaScript [JS_PROG2]

Introduction

  • HTTP
  • Node.js and createServer()
  • What is express.js
  • Development environment
  • Hello World
  • Express generator

Basic HTTP work

  • Reading a request
  • Generating and sending a response
  • Handling static files

Routing

  • Simple routing
  • Nested Routes
  • Patterns
  • Router object
  • Parametric routers
    • url query parameters
    • custom parameters (e.g. /todo/:id)

Middleware

  • Built-in middlewares
  • Custom middleware
  • Data sharing via request object
  • logging
  • error management
  • session
  • authentication/authorization
  • validation

HTML generation using template

  • Setting up the template engine
  • Pug (ex Jade)
  • Data presentation
  • Conditional and repeated rendering
  • Mixin

REST API creation

  • JSON body parser
  • CORS
  • OpenAPI

Express and Typescript

Current offer
Training location
Course language

The prices are without VAT.