Skip to content

palamago/shared-links-ranking

Repository files navigation

Shared Links Ranking

See a Top 10 shared news/posts based on RSS feed from your favorites news portals/blogs.

LIVE example instance with Argentinian main online news portals. LIVE example instance with Chileans main online news portals.

Requirements

  • PHP
  • MySQL
  • Curl
  • Apache (for production)

Installation

  • Clone repo
git clone git@github.com:palamago/shared-links-ranking.git
  • Create an empty MySQL database

  • Create config file Copy .env.php.sample to .env.php and complete the database info.

<?php
return array(
		'debug'      => true,
		'db_host'      => 'localhost',
		'db_database'  => '',
		'db_username'  => '',
		'db_password'  => '',
		'enc_key'		=> '',
		'url'		=> 'http://localhost:8000'
	);
?>

In cloned folder:

  • Run migrate & example data
php artisan migrate --seed
  • Run process to collect information links from Rss'
php artisan get-links
  • Run process to collect information from social networks
php artisan get-shares
  • Run process to collect history stats
php artisan make-history
  • Run artisan server for local dev environment
php artisan serve
  • Go to http://localhost:8000 , you can see top 10 shared NYT news for Latest and Sports RSS's

  • For admin page, go to http://localhost:8000/admin with admin/admin credentials (you must change it).

  • For production, run processes using CRON (every hour recommended)

php artisan get-links && php artisan get-shares php && artisan make-history

About

Shared Links Ranking from multiples RSS sources.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •