An open API service indexing awesome lists of open source software.

https://github.com/abdulrehmanmehar/news-app

Fetch News from different news providers, merge'em, saves in db, and provide through an endpoint
https://github.com/abdulrehmanmehar/news-app

laravel newsfeed react

Last synced: 5 months ago
JSON representation

Fetch News from different news providers, merge'em, saves in db, and provide through an endpoint

Awesome Lists containing this project

README

          

## News App

Fetches data from

- NewYork Times
- The Guardian
- NewsAPI

### How to run?
- Run `composer install`. It's required to use `sail` commands.
- Rename `.env.example` to `.env`.
- Run `./vendor/bin/sail build`.
- Run `./vendor/bin/sail up -d`. Backend will be accessible at `http://localhost:8000` and Frontend at `http://localhost:3000`
- Run the migrations `./vendor/bin/sail artisan migrate`
- Run the seeder `./vendor/bin/sail artisan db:seed`
- Run the Scheduled Job to fetch news `./vendor/bin/sail artisan schedule:work`