/json-server-multiple-files

Run json-server with multiple files/resources

Primary LanguageJavaScript

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

alt text

Note: Check fakeapis/index.js and *.json for more details.