#bathandbodyworks Clone of https://www.bathandbodyworks.com
"for deplyment we deploy our server on heroku and created sharable api https://bathandbodyworksserver.herokuapp.com/product/
this is the deployed api link you can use on your projects for mock data.
#here we shared files by using local json api follow the instruction below.
pull the project-> now go to the folder.
run commands:
if you did't inistalled node.js so first install it from documentation.. https://docs.npmjs.com/downloading-and-installing-node-js-and-npm/;
`npm init` then
for install json server `npm install --save json-server`
for run the server `npm run start`
NOTE: IF YOU USE DEPLOYED API SO YOU CAN SKIP THE ABOVE METHOD .. FOLLOW SOME EXTRA THINGS.
1)DELETE ALL .json files ,
2) you have to change all api requests link beacuse we used local api .so you have to change all api requested link localhost:3000/products/ ->to https://bathandbodyworksserver.herokuapp.com/product/
#snaps