/hackernews-sample

manara

Primary LanguageTypeScript

About

This application leverages the Hacker News API to fetch and analyze data from recent stories. It provides functionality to:

  1. Retrieve the top 10 most occurring words in titles of recent stories.
  2. Filter stories posted exactly one week ago and extract their top 10 most occurring words in titles.
  3. Analyze the titles of the last 100 stories from users with at least 10,000 karma to identify the top 10 most occurring words.
  4. Manage concurrent requests and implement rate limiting for efficient API usage

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov