To get the project up and running a simple installcommand will retrieve all of our packages needed.
Before you can run the Books API, we also need to globally install
npm install -g json-server
Running the Json Server
This will take the db.json file in our root directory and serve it as if it were a legit endpoint.
npm run api
Running Our Application
Run both together with one command
With that in mind, we can run both with one command using:
npm run start:api