To install nodemon
- npm install -g nodemon
To install dependencies
- npm install
To start the app
- nodemon app.js
To test the api go ahead and install postman
Send a Get request to /api/facts/:id to read a fact
Send a Get request to /ap/facts to read a list of facts
Send a Get request to /api/facts/fact/random to read a random fact
Send a Put request to /api/facts/:id to update a fact
Send a Delete request to /api/facts/:id to delete a fact
Send a Post request to /api/facts to create a new fact