A service that acts as a proxy between the services hacker-news and a third-party. This proxy service offers an API to retrieve and manage list of stories from the hacker news storage.
- Node
- Express
- MongoDB
- OpenAPI 3
git clone https://github.com/gtopsis/hacker-news-proxy-api.git
HACKER_NEWS_HOST=https://hacker-news.firebaseio.com
HACKER_NEWS_API_VERSION=v0
MONGODB_USER=root
MONGODB_PASSWORD=123456
MONGODB_DATABASE=hacker_news_proxy_api_db
MONGODB_LOCAL_PORT=7017
MONGODB_DOCKER_PORT=27017
MONGODB_NAME=hackerNewsDB
MONGODB_HOST=mongodb
NODE_LOCAL_PORT=6868
NODE_DOCKER_PORT=8080
npm run build
docker compose up --build
- http://localhost:6868/api-docs (API doc with swagger-UI)