This is simple project using laravel to crawling and scrapping website to monitoring product price.
Make sure you already install mysql in your machine.
Make sure you already install php in your machine (make sure your php minimum version is 7.0), for easy to use i recommend you to install xampp through this link https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/7.0.27/
Make sure you already install composer in your machine, if you don't have composer in your machine you can install through this link https://getcomposer.org/download/
$ php -v
PHP 7.0.18 (cli) (built: Apr 11 2017 16:35:18) ( ZTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
$ composer --version
Composer version 1.8.4 2019-02-11 10:52:10
Since the project using xampp, I recommend to put the source code inside htdocs folder. Clone this repository into your htdocs folder
$ cd /your-xampp-path/htdocs
$ git clone https://github.com/oryzel/product-monitoring.git
you must copy env.example to .env (for development or production) and .env.testing (for running unit test) for database value appropriate to your database on machine
$ cd /your-xampp-path/htdocs/product-monitoring
$ composer install
$ cd /your-xampp-path/htdocs/product-monitoring
$ php artisan migrate:refresh --seed
When using the scheduler for scrapping price, you only need to add the following Cron entry to your machine
$ * * * * * cd /your-xampp-path/htdocs/product-monitoring && php artisan schedule:run >> /dev/null 2>&1
$ cd /your-xampp-path/htdocs/product-monitoring
$ ./vendor/bin/phpunit