-
Clone the repository:
git clone http://github.com/creativogee/autochek.git cd autochek
-
Install the dependencies using Yarn:
yarn install
-
Configure Environment
# .env BASE_URL=https://hacker-news.firebaseio.com/v0
-
Running the App:
To start the app locally, run:
yarn start
The app will be accessible at http://localhost:4242.
-
Running Tests:
To run tests, use:
yarn test
This will execute all the tests in the application.
-
Usage /api/recent: Retrieve the top most occurring words in the titles of the latest stories.
Example: http://localhost:4242/api/recent?unique-word=10&story-size=25
/api/last-week: Retrieve the top most occurring words in the titles of the stories from the last week.
Example: http://localhost:4242/api/last-week?unique-word=10
/api/users-fav-word: Retrieve the top most occurring words in the titles of stories submitted by users with high karma.
Example: http://localhost:4242/api/users-fav-word?unique-word=10&story-size=600&karma=10000
Thank you for your time.