json-server-multiple-files
json-server-multiple-files copied to clipboard
Run json-server with multiple files/resources
JSON Server Multiple Files/Resources
JSON Server: https://github.com/typicode/json-server/
Install
Install Global
npm install -g json-server
Install local
npm install
Structure
├── README.md
├── fakeapis
│ ├── index.js
│ ├── posts.json
│ └── users.json
├── package-lock.json
├── package.json
└── screenshot.png
Run JSON server
-
npm start
: Start json server multiple files
Screen shot
Note: Check fakeapis/index.js
and *.json
for more details.