http-server
# simulate a server using node
npm install http-server -g
# In your code directory create a folder called ‘server’, inside server place a file called ‘data.json’. Fill the file with some data like
{
"name": "Donald Duck",
"occupation": "none"
}
http-server ./
# If you navigate to http://127.0.0.1:8080/data.json in your browser you should now be able to see the file.