Install my-project with yarn. The following command will create node_modules and yarn.lock file.
yarnThe following command will start the dev server.
yarn startTo run test cases, run the following command. Implemented basic test with Jest.
yarn test- On page load 500 new stories are fetched, only 10 are show on the page.
- Clicking on
load more buttonloads 10 more stories. - Clicking on
past buttonshould load stories form the past. But I couldn't figure out any way to get the stories according to date, nor it is documented in the repo for API. - SO, I loaded the best stories
on clicking the past button. As best stories are often from the past.