This project is a simple restful API that implements methods for handling posts and comments in a blog-like application.
The project has one main file (server.js) and a folder called routes with three files (posts.js, comments.js and index.js).
posts.js implements methods that handles operations done on the posts in the blog, comments.js implements methods that handles operations done on the comments under the posts in the blog, index.js imports the posts and comments modules and exports it to be imported in the main file (server.js).
Multiple middlewares were installed to help parsing and error-handle the request body. These npm middlewares are body-parser, morgan and errorhandler.
1- Open terminal
2- Navigate to app directory
3- type 'node server.js'
4- test it with GUI tools (like postman) or with curl commands