Upload And Download File In Node
Here we will use multer middleware for uploading file . Click the link to know what is multer . Setup The Project Folder create a new folder using console/terminal. open console/terminal type mkdir followed by the folder name you want to give. change to that folder by typing cd folder name. Setup Node For The Project now type npm init on console/terminal. the npm init will create a package.json file.But we can create it manually too. just open the folder and add a new file and name it package.json and then we can structure it the same way as its been structured when using npm init . the package.json will look like this. now we will install packages for our project using npm install followed by package names we want to install. the following packages will be installed express ejs body-parser multer mongoose . this will generate a folder name node_modules wh...