Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 348 Bytes

create-json-server.md

File metadata and controls

16 lines (9 loc) · 348 Bytes

To install JSON Server Globally:

  • $ npm i json-server -g

To Start & Watch the Server:

  • $ json-server --watch data/db.json --port 3500
  • note:
  • Specify where ur data is: "data/db.json"

  • port: 3500

-- Then it will identify our todo's there and it starts watching that data

-- so it will support create, read, update & delete functions