Skip to content

Commit f2f3899

Browse files
committed
Enhance development environment with documentation, email testing and shell tools
This comprehensive update improves several aspects of the development environment: - Add MailHog service for testing emails without sending real messages - Restructure API documentation with generation (apidocs-generate) and serving (apidocs-serve) - Add convenient container shell access commands (php-connect and db-connect) - Standardize naming with APP_DIR and consistent command patterns - Refactor Makefile with reusable components and better organization - Add flexible composer-script command for running arbitrary Composer scripts - Update environment variables in .env files for consistency - Configure proper .gitignore settings for generated documentation These improvements make the development environment more functional and user-friendly while maintaining a clean project organization.
1 parent 321da8d commit f2f3899

File tree

8 files changed

+366
-93
lines changed

8 files changed

+366
-93
lines changed

.env

+9-5
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ XDEBUG_ENABLED=1
4040

4141
# Application configuration
4242
APP_WORKSPACE=default
43-
APP_PUBLIC_DIR=app/public
44-
45-
# Workspace installation directories
46-
SYMFONY_DIR=symfony-app
47-
LARAVEL_DIR=laravel-app
43+
APP_DIR=app
44+
APP_PUBLIC_DIR=$(APP_DIR)/public
45+
46+
# MailHog configuration
47+
MAILHOG_SMTP_PORT=1025
48+
MAILHOG_UI_PORT=8025
49+
MAILHOG_STORAGE=memory
50+
MAILHOG_HOSTNAME=mailhog
51+
MAILHOG_CORS_ORIGIN=*

.env.dev

+9-5
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ XDEBUG_ENABLED=1
4040

4141
# Application configuration
4242
APP_WORKSPACE=default
43-
APP_PUBLIC_DIR=app/public
44-
45-
# Workspace installation directories
46-
SYMFONY_DIR=symfony-app
47-
LARAVEL_DIR=laravel-app
43+
APP_DIR=app
44+
APP_PUBLIC_DIR=$(APP_DIR)/public
45+
46+
# MailHog configuration
47+
MAILHOG_SMTP_PORT=1025
48+
MAILHOG_UI_PORT=8025
49+
MAILHOG_STORAGE=memory
50+
MAILHOG_HOSTNAME=mailhog
51+
MAILHOG_CORS_ORIGIN=*

.env.prod

+9-5
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ PHPMYADMIN_PROFILE=none
3838

3939
# Application configuration
4040
APP_WORKSPACE=default
41-
APP_PUBLIC_DIR=app/public
42-
43-
# Workspace installation directories
44-
SYMFONY_DIR=symfony-app
45-
LARAVEL_DIR=laravel-app
41+
APP_DIR=app
42+
APP_PUBLIC_DIR=$(APP_DIR)/public
43+
44+
# MailHog configuration
45+
MAILHOG_SMTP_PORT=1025
46+
MAILHOG_UI_PORT=8025
47+
MAILHOG_STORAGE=memory
48+
MAILHOG_HOSTNAME=mailhog
49+
MAILHOG_CORS_ORIGIN=*

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ web/app/vendor/
1919
web/app/doc/
2020
web/app/report/
2121
.phpdoc/
22+
/docs/api
2223

2324
# Workspace directories
2425
/web/symfony-app/

0 commit comments

Comments
 (0)