Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/share some ide confs #46

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ STORAGE_SUBDOMAIN=minio
# API
APP_SECRET=$ecretf0rt3st

# WEBAPP
NUXT_SSR=1

# MySQL
MYSQL_ROOT_PASSWORD=super-secret
MYSQL_DATABASE=symfony-boilerplate
Expand Down
11 changes: 11 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/Symfony Boilerplate.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

74 changes: 74 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/php-test-framework.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 117 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/runConfigurations/XDebug.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations/Xdebug_helper.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/scopes/API.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/scopes/CI_Stack.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/scopes/Docs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/scopes/WEBAPP.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/symfony2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ include .env
up: .env ## Start the Docker Compose stack.
docker-compose up -d

ps: .env ## Status of running containers
docker-compose ps

top-lazy: .env ## Use lazy docker to show a docker compose interface
@if ! type lazydocker > /dev/null 2>&1; then \
curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash; \
fi
lazydocker

down: ## Stop the Docker Compose stack.
docker-compose down
Expand Down Expand Up @@ -61,6 +69,24 @@ lint-webapp: ## Launch linter in webapp
docker-compose exec webapp yarn lint:fix
docker-compose exec webapp yarn lint

.PHONY: xdebug-start
xdebug-start: up ## Activate x-debug
@if ! (docker-compose exec -T api php -m | grep -qi xdebug); then \
echo "php-xdebug is not activated"; \
echo "Ensure env \`PHP_EXTENSION_XDEBUG=1\`"; \
exit 1; \
fi;
@if [ "$(FROM_PHPSTORM)" != "1" ]; then echo "From phpstorm type MAJ+F9"; fi
@echo "- For browser debug"
@echo " - To Enable go onto this url from your browser (do not forget to place yours breakpoints)"
@echo " http://$(API_SUBDOMAIN).$(DOMAIN)/ping?XDEBUG_SESSION_START=1"
@echo " - To Disable go onto this url from your browser (or just stop listen from phpstorm)"
@echo " http://$(API_SUBDOMAIN).$(DOMAIN)/ping?XDEBUG_SESSION_STOP=1"
@echo " - Disable Server Side Rendering if required (on you .env, change to \`NUXT_SSR=0\`)"
@echo "- For cli debug : "
@echo " - type on api container : \`XDEBUG_SESSION=1 php ./my-script.php\`"
@echo " - type on api container : \`XDEBUG_SESSION=1 ./bin/console app:my-script\`"

.PHONY: help
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ services:
# LogRocket.
# LOGROCKET_ID
# LOGROCKET_DEV_MODE_ALLOWED
NUXT_SSR: "${NUXT_SSR:-1}"
volumes:
- ./src/webapp:/usr/src/app

Expand Down
1 change: 1 addition & 0 deletions src/api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"phpstan/phpstan": "^1.0",
"phpunit/phpunit": "^9.0",
"qossmic/deptrac-shim": "^0.11.1",
"rector/rector": "^0.14.4",
"squizlabs/php_codesniffer": "^3.6",
"symfony/debug-bundle": "^5.4",
"symfony/phpunit-bridge": "^6.0",
Expand Down
Loading