TEST TASK: Backend PHP & Laravel. Project is dockerized with Laravel Sail. https://laravel.com/docs/9.x/sail#starting-and-stopping-sail
Steps to run:
- composer install
- mv .env.example .env (just for test purposes all "credentials" are in .env.example file)
- ./vendor/bin/sail up -d
- ./vendor/bin/sail artisan migrate
- ./vendor/bin/sail artisan db:seed
- ./vendor/bin/sail artisan queue:work
- run command by hand for testing purposes, just for not waiting untill task scheduler will fire for creating & charging invoices - ./vendor/bin/sail artisan command:create-and-charge-invoice
Test Task Description: Users tableda - 1 000 000 user malumotlari bor. Userlari Har kuni kechqurun 00:00 da
- verified bolsa,
- business user bolmasa,
- Service Stop qilinmagan bolsa, Userlar kamida 80s0 000 - 900 000 get boladi
Shulari Invoices tablega Insert qilish kerak kuniga bir marta. Create qilgandan kn. Kun davomida invoices 800-900 ming donani 3 soat ichida Queue orqali obrabotka qilib chiqish kerak barcha create qilingan invoicelari.