Kamil Niemczycki 2fb2415203
#157 - more interactive calendar (#162)
* #157 - added support for the date parameter

* #157 - prepared clikable days

* removed line with consol log

* lint

* #157 - prepared clikable days for calendar of holidays

* #157 - added a privilege check

* #157 - added support for the user id parameter

* improved loading of selected date

* updated calendar

* #157 - added the request class and improved the request parameters

* csf

* Apply suggestions from code review

Co-authored-by: Krzysztof Rewak <krzysztof.rewak@gmail.com>

* Apply suggestion

Co-authored-by: Krzysztof Rewak <krzysztof.rewak@gmail.com>

* icon has been renamed

Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl>

* selection of previous days restored

Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl>
Co-authored-by: Adrian Hopek <adrian.hopek@blumilk.pl>

* changes for the controller have been withdrawn

Co-authored-by: Adrian Hopek <adrian.hopek@blumilk.pl>

* wip

* Update resources/js/Composables/vacationTypeInfo.js

Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com>

* #157 - updated cursor type for weekened

Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl>

Co-authored-by: Krzysztof Rewak <krzysztof.rewak@gmail.com>
Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl>
Co-authored-by: Adrian Hopek <adrian.hopek@blumilk.pl>
Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com>
2022-06-08 11:02:37 +02:00
2022-01-26 12:31:26 +01:00
2022-05-18 09:05:17 +02:00
2022-04-06 10:59:26 +02:00
2022-03-04 14:47:45 +01:00
2022-03-04 14:47:45 +01:00
2022-03-04 14:47:45 +01:00
2022-03-15 14:46:42 +01:00
2022-03-31 14:16:14 +02:00
2022-05-26 08:15:43 +02:00
2022-03-31 14:16:14 +02:00
2022-02-23 11:11:53 +01:00
2022-01-12 08:49:22 +01:00
2022-02-15 15:08:26 +01:00

He's watching you

Toby

HR software you love to hate

Architecture

Directory structure little differs from a standard Laravel tree. We decided to refactor main app directory to better suit our needs. All classes are grouped in four major categories:

  • app/Architecture for all framework-related stuff like service providers, exception handler and more;
  • app/Domain for all framework-agnostic services related to the business logic of the application;
  • app/Eloquent for all database/ORM-related classes like models, observers and scopes;
  • app/Infrastructure for entry points to the application: CLI, HTTP and async ones.

Local setup

  • run sh setup or:

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
    
  • generate storage link

    dcr php php artisan storage:link
    
  • migrate and seed database

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

    dcr node npm install
    
  • build assets

    dcr node npm run dev
    
  • place google credentials here: /google-credentials.json (how to obtain the credentials)

Available containers (local)

  • web - nginx HTTP server
  • php - php and composer stuff
  • node - npm stuff
  • pgsql - 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 composer cs
  dcr php composer csf
  dcr node npm run lint
  dcr node npm 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%