How to Configure CORS in Node.js With Express?
Reading Time: 9 minutes Internet browsers typically deny access to unknown websites from your application programming interfaces and services. Doing this allows your server to share its resources only with clients that are on the same domain as yours and nobody else. However, there are times when you would like to relax this guard or would want to exercise […]
Perform a Session-based User Authentication in Express.js
Reading Time: 10 minutes While it is possible to render static websites from a server, this approach has many limitations, including code duplication and a lack of flexibility — particularly when it comes to reading data from a database. Fortunately, Express.js includes a template engine that allows us to generate dynamic HTML pages from our server-side applications. A template […]
How to upload single or multiple images to a local directory with Multer in Node.js?
Reading Time: 7 minutes The most fundamental operation of any application is a file upload. While images can be uploaded on the front end, they must be received via an API and database on the backend. You can set up file and image uploads in one place using Multer and Express, a Node.js framework. In this blog, we will […]
How to send customized emails by integrating SendGrid with a Node.js application?
Reading Time: 10 minutes Email is still one of the most popular forms of textual communication, particularly among corporations for notifications, outreach, etc. through their business product. SendGrid is one of the most widely used email APIs to integrate email services into business products. SendGrid makes it simple to send welcome emails, password reset emails, communication updates, and other […]