Create/Launch new Product API +Update an Delete Product by Admin, Get Product Details by customer API Nodejs , MongoDB MERN Stack
// Create Required following files mentioned in previous post = https://vasubirla.blogspot.com/2023/02/register-new-user-login-user-delete.html config.env Server.js //app.js /utilsfolder/errorhander.js /utils/jwtToken.js file 3. /utils/sendEmail.js file //Create Product Model - and import it in ProductController //ProductModel.js const mongoose = require ( 'mongoose' ); const ProductSchema = new mongoose . Schema ({ name : { type : String , required :[ true , "please enter produt name" ], trim : true }, description : { type : String , required :[ true , "please add product description" ] }, price : { type : Number , required :[ true , "Product Price is requir...