andela / ah-kgl-wakanda-backend

0 stars 5 forks source link

#165020136 Add read time to articles #27

Closed gracelungu closed 5 years ago

gracelungu commented 5 years ago

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)

image

Questions:

N/A