- directory refactor #32

Merged
krzysztofrewak merged 8 commits from directory-refactor into main 2022-01-26 12:31:26 +01:00
Showing only changes of commit 4bad3f416a - Show all commits

View File

@@ -4,6 +4,13 @@
> HR software you love to hate > 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 suite our needs. All classes are grouped in for major categories:
* `app/Architecture` for all framework-related stuff like service providers, excpetion handler and more;
* `app/Domain` for all framework-agnostic services related to business logic of the application;
* `app/Eloquent` for all database/ORM-related classes like models, observers and scopes;
* `app/Infrastructure` for entrypoints to the application: CLI, HTTP and async ones.
## Local setup ## Local setup
- run `sh setup` or: - run `sh setup` or:
@@ -96,4 +103,4 @@ Docker container:
``` ```
docker-compose run --rm -e XDEBUG_MODE=off php php artisan test docker-compose run --rm -e XDEBUG_MODE=off php php artisan test
``` ```