Upload images by nodejs and multer
Introduction When working with the APIs , the need for uploading images and file sometimes is necessary and commonly used in APIs to upload images in form. For this need , we can use third party library from node package manager Multer . Multer is a node.js middleware for handling multipart/form-data , which is primarily used for uploading files. First Step Fist step , is to create a node.js app and install express by writing a command npm i express in the terminal with the specified path you want to create a project. Second Step Now , the node modules and package-lock-json is installed by installing express . So, to install package json , the command "npm init -y" need to run in the terminal. The basic setup of node.js app where on some port app is listening on the localhost and one basic route will be there to check if app is running with the get API. So, here is the example how to setup basic node.js app with the express. Third Step After the basic setup of ap...