This web project collects vehicle adverts from various websites and allows users to browse this data.
- PHP 7.0
- MySQL
- Symfony 3.2
- Install Git
- Clone repository
git clone https://github.com/nfqakademija/autoinsanity.git
- cd 'autoinsanity'
- Get Composer
- Run
composer install
- Create database with
php bin/console doctrine:database:create --if-not-exists
- Create tables with
php bin/console doctrine:schema:update --force
- Run
php bin/console doctrine:fixtures:load
to insert all needed fixtures to the database.
- Run
php bin/console assets:install --symlink
- Run
php bin/console server:start
- Go to
http://127.0.0.1:8000/
- The first time you need to run
php bin/console crawler:start
. This command browses through all adverts and collects them. - All other times use
php bin/console crawler:start --update
. This will save time as only newly updated adverts will be parsed.