Skip to content

Commit d3df5c9

Browse files
authored
🚧 Setup DDD architecture (#137)
1 parent a998d46 commit d3df5c9

File tree

11 files changed

+37
-2
lines changed

11 files changed

+37
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ composer.phar
1111

1212
/.idea
1313
/.vscode
14+
/projects
1415

1516
# Laravel Exclude
1617
#

bin/checkout_latest_projects.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
PROJECTS=(
4+
api
5+
)
6+
7+
for p in "${PROJECTS[@]}"; do
8+
if [ -d "projects/$p" ]; then
9+
echo "Pulling latest projects updates for $p..."
10+
(cd "projects/$p" && git pull)
11+
else
12+
echo "Cloning $p..."
13+
git clone --single-branch --branch main "https://github.com/laravelcm/$p" "projects/$p"
14+
fi;
15+
done

bin/setup.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
if [ ! -f composer.json ]; then
4+
echo "Please make sure to run this script from the root directory of this repo."
5+
exit 1
6+
fi
7+
8+
composer install
9+
composer setup
10+
source "$(dirname "$0")/checkout_latest_projects.sh"

bin/update.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if [ ! -f composer.json ]; then
4+
echo "Please make sure to run this script from the root directory of this repo."
5+
exit 1
6+
fi
7+
8+
composer install
9+
source "$(dirname "$0")/checkout_latest_projects.sh"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
"psr-4": {
7575
"App\\": "app/",
7676
"Database\\Factories\\": "database/factories/",
77-
"Database\\Seeders\\": "database/seeders/"
77+
"Database\\Seeders\\": "database/seeders/",
78+
"Domain\\": "src/Domain"
7879
}
7980
},
8081
"autoload-dev": {
@@ -119,7 +120,6 @@
119120
"php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
120121
"php artisan key:generate",
121122
"php artisan migrate",
122-
"php artisan rinvex:migrate:subscriptions",
123123
"php artisan db:seed",
124124
"php artisan lcm:admin"
125125
]
File renamed without changes.

src/Domain/Forum/.gitkeep

Whitespace-only changes.

src/Domain/Job/.gitkeep

Whitespace-only changes.

src/Domain/Profile/.gitkeep

Whitespace-only changes.

src/Domain/Sponsor/.gitkeep

Whitespace-only changes.

src/Domain/Subscription/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)