GETTING STARTED
Preparation
- Install PHP version 7.1 or higher
- Install MySQL 5.6 or higher
- 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
- Use search input on the right side of header for filter tv series episodes
- Use pagination for walk through the pages
- Use lostfilm.tv button to go to lostfilm.tv page about the episode