Skip to content

Latest commit

 

History

History

product-nodejs-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

product-nodejs-app

Product microservice app built using node JS.

Download & Run

Download the project and run

npm install

Run the application


node app.js 

Test the application

Save the product :

url :

http://localhost:3000/product/save

header :

 Content-Type →application/json; charset=utf-8

body:

 {
    "productId": "10",
    "productName": "Fsports",
    "size": "3",
    "price": 5000000,
    "discount": 0,
    "color": "White",
    "category": "Shoes for men"
}

Get the product :

http://localhost:3000/product/get/{productId}