npm install -g json-server
json-server --watch db.json
link:https://github.com/typicode/json-server
# Install JSON Server Globally
npm install -g json-server
# #Install JSON Server Locally
npm install json-server
# Check JSON Server version
json-server --version
# Run JSON server
json-server --watch db.json
# Change the server PORT
json-server --watch db.json --port 4000
ReferenceError: path is not defined
at showblogpage (P:Hnad Holding Service ClassJavaScript MERN Stack DevelopmentExpress JSExpress Class 02controllerpagecontroller.js:12:30)
at Layer.handle [as handle_request] (P:Hnad Holding Service ClassJavaScript MERN Stack DevelopmentExpress JSExpress Class 02
ode_modulesexpresslib
outerlayer.js:95:5)
at next (P:Hnad Holding Service ClassJavaScript MERN Stack DevelopmentExpress JSExpress Class 02
ode_modulesexpresslib
outer
oute.js:144:13)
at Route.dispatch (P:Hnad Holding Service ClassJavaScript MERN Stack DevelopmentExpress JSExpress Class 02
ode_modulesexpresslib
outer
oute.js:114:3)
at Layer.handle [as handle_request] (P:Hnad Holding Service ClassJavaScript MERN Stack DevelopmentExpress JSExpress Class 02
ode_modulesexpresslib
outerlayer.js:95:5)
at P:Hnad Holding Service ClassJavaScript MERN Stack DevelopmentExpress JSExpress Class 02
ode_modulesexpresslib
outerindex.js:284:15
at Function.process_params (P:Hnad Holding Service ClassJavaScript MERN Stack DevelopmentExpress JSExpress Class 02
ode_modulesexpresslib
outerindex.js:346:12)
at next (P:Hnad Holding Service ClassJavaScript MERN Stack DevelopmentExpress JSExpress Class 02
ode_modulesexpresslib
outerindex.js:280:10)
at Function.handle (P:Hnad Holding Service ClassJavaScript MERN Stack DevelopmentExpress JSExpress Class 02
ode_modulesexpresslib
outerindex.js:175:3)
at router (P:Hnad Holding Service ClassJavaScript MERN Stack DevelopmentExpress JSExpress Class 02
ode_modulesexpresslib
outerindex.js:47:12)