Skip to content

jralph/hackernews-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackernews Data Scraper + API

Run using the following command:

docker-compose up -d --remove-orphans --build && docker-compose ps

The end output of this will be something like the following:

              Name                            Command                  State                Ports
----------------------------------------------------------------------------------------------------------
hackernews-api_api_1               /api -redis-host=redis:6379      Up             0.0.0.0:55032->8901/tcp
hackernews-api_redis-commander_1   /usr/bin/dumb-init -- /red ...   Up (healthy)   0.0.0.0:55021->8081/tcp
hackernews-api_redis_1             docker-entrypoint.sh redis ...   Up             0.0.0.0:55019->6379/tcp
hackernews-api_scraper_1           /scraper -redis-host=redis ...   Up             8901/tcp

You can browse to the api at 0.0.0.0:55032 for example (port taken from the above list).

You can also access a UI for redis by browsing to 0.0.0.0:55021 for example (port taken from the above list).

Keep in mind all API requests get cached for 5 minutes. If you hit the api while the scraper container is running you won't have all of the data!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published