NodeJS Posts/Comments API
This is a simple NodeJS API that uses axios, expressJS and the jsonplaceholder endpoint.
Demo
After cloning this repository, you can run node index.js
to run the server.
Using your browser you can visit the following URLs:
- http://localhost:3000/top-posts - Here these top posts are sorted by number of comments
- http://localhost:3000/comments - Here these comments can be queried according to: postId, id, email, name, or body