The json-server is a simple server to serve json data for playing with Angular app in development. If you are learning AngularJS and want to play with json data you can use this json-server to serve static content for you!!
npm install json-server -g
Setting up a folder to serve:
Create a folder at any convenient place.
Move to that folder
Place your .json file in this folder eg: db.json To serve your content
$json-server --watch db.json
Type s + enter at any time to create a snapshot of the database
Now open your favourite browser and navigate to the said links you can see your json being served!!
If you want to serve images or any other static content then you need to put those in public folder.