Table of contents
General info
Laravel news feed portal using newsapi.org
Technologies
Project is created with:
- Laravel 5.4
- Vue.js
- Guzzlehttp/guzzle 6.3
- JQuery Timeago library 1.6.1
Features
- Displaying recent news headlines
- Displaying news in categories: Business, Health, Science, Sports, Technology
- Displaying/adding comments to the news
- Comes with the command enabling to fetch headlines from newsApi.org and save them to database. Can be easily set up with cron to always have the most recent news without any work.
- Comes with the command to recycle old News
Installation
Clone the repository
Run composer
composer install
Run migrations
php artisan migrate
Install front-end dependencies
npm install
Compile assets
npm run dev
To fetch news from NewsApi use command:
php artisan get:news
To recycle old news use command:
php artisan recycle:news {days}