This PR adds the functionality to get the read time of an article.
Description of Task to be completed?
~ Create a function to convert time.
~ Create a function to generate the read time based on the number of words.
~ Add the read time to articles
~ Write unit tests
How should this be manually tested?
This can be tested using postman and the API documentation for reference.
~ First clone the repo https://github.com/andela/ah-kgl-wakanda-backend.git .
~ Install the required dependencies using npm install && npm start
~ In the web browser open the API doc at localhost:3000/doc for reference
~ Use postman to test, with specifications found in the documentation.
~ The articles returned for getting all and single article return a read time.
What does this PR do?
This PR adds the functionality to get the read time of an article.
Description of Task to be completed?
~ Create a function to convert time. ~ Create a function to generate the read time based on the number of words. ~ Add the read time to articles ~ Write unit tests
How should this be manually tested?
This can be tested using postman and the API documentation for reference. ~ First clone the repo https://github.com/andela/ah-kgl-wakanda-backend.git . ~ Install the required dependencies using npm install && npm start ~ In the web browser open the API doc at localhost:3000/doc for reference ~ Use postman to test, with specifications found in the documentation. ~ The articles returned for getting all and single article return a read time.
Any background context you want to provide?
N/A
What are the relevant pivotal tracker stories?
165020136
Screenshots (if appropriate)
Questions:
N/A