dependabot[bot] f9cf11f0c0
#5 - (php) Bump nunomaduro/collision from 5.10.0 to 5.11.0
Bumps [nunomaduro/collision](https://github.com/nunomaduro/collision) from 5.10.0 to 5.11.0.
- [Release notes](https://github.com/nunomaduro/collision/releases)
- [Changelog](https://github.com/nunomaduro/collision/blob/stable/CHANGELOG.md)
- [Commits](https://github.com/nunomaduro/collision/compare/v5.10.0...v5.11.0)

---
updated-dependencies:
- dependency-name: nunomaduro/collision
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-12 07:49:47 +00:00
2022-01-12 08:49:22 +01:00
2022-01-12 08:49:22 +01:00
2022-01-12 08:49:22 +01:00
2022-01-12 08:49:22 +01:00
2022-01-10 13:28:18 +01:00
2022-01-10 13:28:18 +01:00
2022-01-12 08:49:22 +01:00
2022-01-11 14:04:01 +01:00
2022-01-12 08:49:22 +01:00
2022-01-10 13:28:18 +01:00
2022-01-11 14:04:01 +01:00
2022-01-10 13:28:18 +01:00
2022-01-11 14:04:01 +01:00
2022-01-10 13:28:18 +01:00
2022-01-10 13:28:18 +01:00
2022-01-12 08:49:22 +01:00
2022-01-10 13:28:18 +01:00
2022-01-12 08:49:22 +01:00
2022-01-11 14:04:01 +01:00
2022-01-10 13:28:18 +01:00
2022-01-12 08:49:22 +01:00
2022-01-12 08:49:22 +01:00
2022-01-11 14:04:01 +01:00
2022-01-12 08:49:22 +01:00
2022-01-11 14:04:01 +01:00

He's watching you

Toby

HR software you love to hate

Local setup

dcr is an alias to docker-compose run --rm -u "$(id -u):$(id -g)"

  • clone the repository

  • initialize .env file and customize if needed

    cp .env.example .env
    
  • build containers

    docker-compose build --no-cache --pull
    
  • run containers

    docker-compose up -d
    
  • install composer packages

    dcr php composer install
    
  • generate app key

    dcr php php artisan key:generate
    
  • migrate and seed database

    dcr php php artisan migrate --seed
    
  • install npm packages

    dcr node npm install
    
  • build assets

    dcr node npm run dev
    

Available containers (local)

  • web - nginx HTTP server
  • php - php and composer stuff
  • node - npm stuff
  • mysql - database for local development
  • mailhog - for emails preview

Running tests

If xDebug is installed, set environment variable XDEBUG_MODE=off to improve performance

  dcr -e XDEBUG_MODE=off php php artisan test

Code style check

  dcr php php vendor/bin/ecs check
  dcr php composer ecs
  dcr php php vendor/bin/ecs check --fix
  dcr php composer ecsf
  dcr node npm run lint
  dcr node rpm run lintf

xDebug

  • To use xDebug you need to set DOCKER_INSTALL_XDEBUG to true in .env file.
  • Then rebuild php container docker-compose up --build -d php.
  • You can also set up xDebug params (see docs https://xdebug.org/docs/all_settings) in docker/dev/php/php.ini file:

Default values for xDebug:

xdebug.client_host=host.docker.internal
xdebug.client_port=9003
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.log_level=0

Disable xDebug

CLI:

XDEBUG_MODE=off php artisan test

Docker container:

docker-compose run --rm -e XDEBUG_MODE=off php php artisan test
Description
HR software you love to hate
Readme 17 MiB
Languages
PHP 55.7%
Vue 41.4%
JavaScript 2%
Blade 0.4%
CSS 0.3%