Posts for Express

Deven
Deven wrote

Express res.json() example

Once the server process the client request, the result needs to be sent back to the client. Express provides various methods to send the result like res.send(), res.json(), res.redirect(). In today’s post, we are going to see res.json(). res.json() is a utility wrapper around res.send() that also adds the Content-Type: application/json header to the response. This header […]

October 19, 2021 in Code examples
Deven
Deven wrote

Express Router params example

REST APIs support multiple parameter types like: Header, Query String, Path & Request body. Routing refers to how an application’s endpoints (URIs) respond to client requests. Here, we will cover how can your server access path or route parameters. These parameters are a part of the url itself eg. GET /client/93 Express Router params Express Router parameters are specific attributes […]

October 19, 2021 in Code examples

Sending Emails With Vuejs and Nodemailer

Sending mails over the internet has become one of the most significant features every web application would love to integrate. In this article, we will see how to send email templates using Nodemailer as our transporter service, Handlebars, as our email templating engine. What We will be building We will build a simple application where […]

June 17, 2020 in Node & Tutorials & Vue