Install json-server globally:
npm install -g json-server
Then move to apps directory which includes defdata.json & run the command:
json-server --watch defdata.json
Use the http-server npm package to create & start the server:
npm install -g http-server
then, execute command in the App directory:
http-server -o