Skip to content

Class 06 Class Notes Create an API

Erin Trainor edited this page Mar 26, 2019 · 1 revision

Start a local json-server

Need to run json-server first by typing json-server --watch= {filepath} in the terminal (second window)

Terminal command to add data to JSON file.

echo '{"name":"Pet", "display_name":"Pet Products", "description":"Strang things your pet will love"}' | http :3000/categories

Clone this wiki locally