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 fetch contents of JSON files stored in Amazon S3 using Express.js and AWS SDK?
Reading Time: 12 minutes A plethora of banks employ JSON for data transfer between the bank and the client servers. With the help of Amazon S3 data lakes, the banks use the data to train AI/ML models and perform advanced analytics. JSON is an open standard file format and data interchange format that stores and transmits data objects composed […]
How to perform PDF operations using HummusJS and Express?
Reading Time: 8 minutes Data range has shifted from a few bytes to quintillion bytes of data every day as greater emphasis has been placed on data science and data analysis. We work a lot with files and PDFs, and AI is becoming increasingly important in this domain. We’ve seen a huge shift in the way AI analyses and […]