zlodes / lostfilm-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GETTING STARTED

Preparation

  1. Install PHP version 7.1 or higher
  2. Install MySQL 5.6 or higher
  3. Download composer: Official Site

Installation

Please check the official laravel installation guide for server requirements before you start. Official Documentation

Clone the repository

git clone git@github.com:zlodes/lostfilm-parser

Switch to the repo folder

cd lostfilm-parser

Install all the dependencies using composer

composer install

Copy the example env file and make the required configuration changes in the .env file

cp .env.example .env

Configure .env database params (with DB_ prefix)

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=lostfilm-parser
DB_USERNAME=homestead
DB_PASSWORD=secret

Generate a new application key

php artisan key:generate

Run migrations

php artisan migrate

Run first parse (this may take a while)

php artisan lostfilm:crawl-news-page --first-run

Add Cron entry for daily database update

* * * * * cd /path-to-project && php artisan schedule:run >> /dev/null 2>&1

Start the local development server

php artisan serve

DEPLOYMENT

For using application on production read the Official guide

USAGE

Go to application home — default for local development server (php artisan serve) is

http://127.0.0.1:8000

Available actions

  1. Use search input on the right side of header for filter tv series episodes
  2. Use pagination for walk through the pages
  3. Use lostfilm.tv button to go to lostfilm.tv page about the episode

Application main page

About


Languages

Language:PHP 95.3%Language:HTML 4.7%