Express js

  • Built on top of 'http' module of nodejs

  • different ports are assigned for different reasons, have a look once

  • While using 'http', in every response we have res.end(), so that browser get to know respose got ended

  • Check different response status codes

    • Successful Responses

      • 200, 201

    • Redirection

      • 300

    • Client Error Response

      • 404

      • 401

      • 400

      • 403

      • 500

  • MIME types

  • Request Object and Properties

    • Method

    • URL

  • methods with expressJS

    • get

    • post

    • put

    • delete

    • all

    • use

    • listen

API vs SSR

SSR - Server Side Rendering

API
SSR

API - JSON

SSR - Template

Send Data

Send Template

Res.JSON()

Res.RENDER()

References

Last updated

Was this helpful?