nikitakiselev / vacancies

Test work for 2up

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HeadHunter vacancies parser

Installation

Clone git clone https://github.com/nikitakiselev/vacancies.git Vacancies and run it on homestead.

After start homestead and create .env configuration file

homestead ssh
cd ~/Code/Vacancies
cp .env.example .env

Change database settings in .env file and install dependencies

composer install
npm install
gulp

Then,

art key:generate
art migrate --seed

Change settings in .env file:

QUEUE_DRIVER=redis
SCOUT_DRIVER=tntsearch

Configure queue worker with laravel documentaion https://laravel.com/docs/5.3/queues#supervisor-configuration.

You can start parser handly art hh:parse or do it automatically every day in 00:00. Just config your server Cron job https://laravel.com/docs/5.3/scheduling#introduction

Run

To start parsing from hh run this command

php artisan hh:parse

To start indexing database with tntsearch run this command

php artisan scout:import

About

Test work for 2up


Languages

Language:PHP 91.6%Language:HTML 5.6%Language:JavaScript 2.3%Language:Vue 0.6%