alroman / json-server

Simple json server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

First install json-server node module.

$ npm install -g json-server

Then, clone this directory and run:

json-server db.json --static ./assets

That will serve the image assets in the assets dir.

To access an asset, it'll be somethign like http://localhost:3000/icon/asset.png

Full reference:

About

Simple json server