richienabuk / news-aggregator-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

News Aggregator API

GraphQL API for News aggregation from multiple sources with option for user preferences

Requirements

Installation

  • Clone repository - git clone git@github.com:richienabuk/news-aggregator-api.git
  • Run this command to setup project docker run --rm \ -u "$(id -u):$(id -g)" \ -v "$(pwd):/var/www/html" \ -w /var/www/html \ laravelsail/php82-composer:latest \ composer install --ignore-platform-reqs \
  • Add env values for NYTIMES_API_KEY, NEWS_API_KEY, THE_GUARDIAN_API_KEY
  • Run command make up or make sl to run docker with logs
  • To load the news articles from different APIs, run command make cron or call this route once: /news/load
  • Visit route /graphiql on domain for documentation and playground
  • Connect frontend app - codebase

Built by

About


Languages

Language:PHP 79.2%Language:Blade 20.2%Language:Makefile 0.4%Language:JavaScript 0.2%