Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 940 Bytes

Readme.md

File metadata and controls

38 lines (26 loc) · 940 Bytes

🚤 json-server-multiple-files

Using json-server to server multiple json files in less than 45 seconds (trust me).

Prequisite

  • nodemon sudo npm install -g nodemon

Getting Started

  1. Place your .json files into the db folder (⚠️ make sure they match the format)
  2. Install dependencies with npm install
  3. Run the server : npm run start:server

Output

[nodemon] 1.18.10
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: test/mock
[nodemon] starting `node json-server.index.js`


🗒    JSON file loaded : places.json
🗒    JSON file loaded : teams.json

⛴    JSON Server is running at http://localhost:3002
🥁    Endpoint : http://localhost:3002/organisations
🥁    Endpoint : http://localhost:3002/tenders

Todo

  • Check the json format, and remove json that does not match.

Built With

License

MIT