List of wants

  • Wanted to create currency fool page on frontend so you can see which currency have changed. It started taking too much time
  • PHP Code Sniffer, PHP Stan, Laravel Pint.

Test

  • There are three test with faking Event and Http request to monobank.
  • To run docker-compose run --rm artisan test

Installation

  • Clone repo
  • create .env file for docker in the root folder and laravel in the src folder. See .env.example for each one.
    • add correct config for mysql
    • add credentials for pusher as well
  • run sh deployment-helper.sh (for details see file).

Optional

  • If you want to use telescope you should configure mysql database configuration.

Used technologies

  • Fond of actions. Using lorisleiva/laravel-actions
  • Mysql is used only for telescope, on production you maynot need it

Docker

Used seperate containers for cron, artisan, npm, composer and main app (php). Containers like npm, composer, artisan are "sleeping" and a activate if requested.

Commands

  • docker-compose run --rm artisan some-command
  • docker-compose run --rm composer install
  • docker-compose run --rm npm install