Skip to content

Commit

Permalink
🚧 Setup DDD architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziearts committed Oct 9, 2023
1 parent a998d46 commit 5c7425d
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ composer.phar

/.idea
/.vscode
/projects

# Laravel Exclude
#
Expand Down
15 changes: 15 additions & 0 deletions bin/checkout_latest_projects.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

PROJECTS=(
api
)

for p in "${PROJECTS[@]}"; do
if [ -d "projects/$p" ]; then
echo "Pulling latest projects updates for $p..."
(cd "projects/$p" && git pull)
else
echo "Cloning $p..."
git clone --single-branch --branch main "https://github.com/laravelcm/$p" "projects/$p"
fi;
done
10 changes: 10 additions & 0 deletions bin/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

if [ ! -f composer.json ]; then
echo "Please make sure to run this script from the root directory of this repo."
exit 1
fi

composer install
composer setup
source "$(dirname "$0")/checkout_latest_projects.sh"
9 changes: 9 additions & 0 deletions bin/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

if [ ! -f composer.json ]; then
echo "Please make sure to run this script from the root directory of this repo."
exit 1
fi

composer install
source "$(dirname "$0")/checkout_latest_projects.sh"
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
"Database\\Seeders\\": "database/seeders/",
"Domain\\": "src/Domain"
}
},
"autoload-dev": {
Expand Down Expand Up @@ -119,7 +120,6 @@
"php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
"php artisan key:generate",
"php artisan migrate",
"php artisan rinvex:migrate:subscriptions",
"php artisan db:seed",
"php artisan lcm:admin"
]
Expand Down
File renamed without changes.
Empty file added src/Domain/Forum/.gitkeep
Empty file.
Empty file added src/Domain/Job/.gitkeep
Empty file.
Empty file added src/Domain/Profile/.gitkeep
Empty file.
Empty file added src/Domain/Sponsor/.gitkeep
Empty file.
Empty file.

0 comments on commit 5c7425d

Please sign in to comment.