Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
734f836
remove unused route comment
tolry Aug 5, 2022
dc60f8c
do not fail if one php-version fails
tolry Aug 5, 2022
43d2fbc
some more happening
tolry Aug 5, 2022
40d978c
more stuff
tolry Aug 6, 2022
60bd4fe
more stuff
tolry Aug 6, 2022
0c9e4e6
mysql tests working?
tolry Aug 6, 2022
3c5396b
mysql service setup
tolry Aug 7, 2022
ac94aa2
update phpunit config
tolry Aug 7, 2022
5f74cb3
migrations should work now
tolry Aug 7, 2022
0f91186
fix do:mi:mi
tolry Aug 8, 2022
db47f0b
gulp build working again
tolry Aug 15, 2022
e093841
new web/public folder configuration
tolry Aug 15, 2022
83d5a64
interface roughly working, no metadata yet
tolry Aug 16, 2022
27ba933
some more upgrading/hacking
tolry Aug 1, 2023
6a6be37
some stuff working
tolry Aug 15, 2023
268f37e
recipe update doctrine/annotations
tolry Aug 15, 2023
bc8d1cb
recipe update doctrine/doctrine-bundle
tolry Aug 15, 2023
4b7931e
recipe update phpunit/phpunit
tolry Aug 15, 2023
589aba0
recipe update symofny/flex
tolry Aug 15, 2023
e55e4e4
recipe update symofny/console
tolry Aug 15, 2023
e2bec0f
flex removes all the grunt work ...
tolry Aug 16, 2023
4af83ba
next one
tolry Aug 16, 2023
88dd74c
monolog, first without merge conflicts 🎉
tolry Aug 16, 2023
47f74bb
merge
tolry Aug 16, 2023
6961c47
twig
tolry Aug 16, 2023
03865b7
validator
tolry Aug 16, 2023
5ed0845
web profiler
tolry Aug 16, 2023
a6967a5
security
tolry Aug 16, 2023
ae7eefd
migrations
tolry Aug 16, 2023
c922b23
added maker bundle
tolry Aug 21, 2023
ee3239a
current state, working?
tolry Oct 17, 2024
3d5f038
composer changes
tolry Oct 17, 2024
bbb9914
composer update
tolry Oct 22, 2024
bb7a061
adds doctrine coding style
tolry Oct 22, 2024
c49cb5b
add phpstan
tolry Oct 22, 2024
83ff6d6
phpactor config added
tolry Oct 22, 2024
0cbc6d5
fix controller meta data
tolry Oct 25, 2024
1659dce
first version of docker compose
tolry Oct 25, 2024
3e19c2d
more stuff working
tolry Nov 4, 2024
5810b7a
docker-compose doing something
tolry Jun 7, 2025
deef12e
wait for mysql
tolry Jun 19, 2025
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
14 changes: 3 additions & 11 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# Real environment variables win over .env files.
#
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
# https://symfony.com/doc/current/configuration/secrets.html
#
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
Expand All @@ -18,20 +19,11 @@
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
DATABASE_URL="mysql://mental_note:SOME_SECRET@127.0.0.1:3306/mental_note?serverVersion=5.7"
DATABASE_URL="mysql://root:test@db:3306/mental_note?serverVersion=8.0"
#DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
###< doctrine/doctrine-bundle ###

###> symfony/swiftmailer-bundle ###
# For Gmail as a transport, use: "gmail://username:password@localhost"
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
# Delivery is disabled by default via "null://localhost"
MAILER_URL=null://localhost
###< symfony/swiftmailer-bundle ###

###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=5c5e72737c8468479c674ad5ff7f0dd7
#TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
#TRUSTED_HOSTS='^(localhost|example\.com)$'
###< symfony/framework-bundle ###
MEMCACHED_HOST=memcached
4 changes: 2 additions & 2 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# define your env variables for the test env here
KERNEL_CLASS='AppBundle\Kernel'
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
PANTHER_APP_ENV=panther
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots
DATABASE_URL="sqlite:///%kernel.project_dir%/var/test-database.db"
DATABASE_URL="mysql://mental_note:SOME_SECRET@127.0.0.1:3306/mental_note_tests?serverVersion=5.7"
19 changes: 18 additions & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,24 @@ jobs:
runs-on: "ubuntu-latest"

strategy:
fail-fast: false
matrix:
php-version:
- "7.4"
- "8.0"

services:
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: mental_note_tests
MYSQL_USER: mental_note
MYSQL_PASSWORD: SOME_SECRET
ports:
- 3306:3306
options: --health-cmd "mysqladmin ping --silent"

steps:
- name: "Checkout"
uses: actions/checkout@v3
Expand All @@ -32,4 +45,8 @@ jobs:
- uses: ramsey/composer-install@2.1.0

- name: "Tests"
run: "./run-tests --coverage-clover=clover.xml --coverage-text"
run: "./run-tests --coverage-text=coverage.txt"

- name: "Coverage Output"
if: "${{ always() }}"
run: cat coverage.txt >> $GITHUB_STEP_SUMMARY
27 changes: 18 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
/var/sessions/*
/bin/*

/web/thumbnails/*
/web/bundles/*
/web/css/*
/web/js/*
/web/fonts/*
/public/thumbnails/*
/public/bundles/*
/public/css/*
/public/js/*
/public/fonts/*
.php_cs.cache

!var/SymfonyRequirements.php
!var/logs/.gitkeep
!/var/sessions
!var/cache/.gitkeep
!var/sessions/.gitkeep
!/web/thumbnails/.gitkeep
!/web/bundles/.gitkeep
!/web/css/.gitkeep
!/web/js/.gitkeep
!/public/thumbnails/.gitkeep
!/public/bundles/.gitkeep
!/public/css/.gitkeep
!/public/js/.gitkeep
!/bin/console

###> phpunit/phpunit ###
Expand All @@ -43,3 +43,12 @@
/var/
/vendor/
###< symfony/framework-bundle ###

###> squizlabs/php_codesniffer ###
/.phpcs-cache
/phpcs.xml
###< squizlabs/php_codesniffer ###

###> phpstan/phpstan ###
phpstan.neon
###< phpstan/phpstan ###
74 changes: 0 additions & 74 deletions .php_cs

This file was deleted.

12 changes: 12 additions & 0 deletions .phpactor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "/phpactor.schema.json",
"symfony.enabled": true,
"indexer.exclude_patterns": [
"/vendor/**/Tests/**/*",
"/vendor/**/tests/**/*",
"/var/cache/**/*",
"/vendor/composer/**/*"
],
"php_code_sniffer.enabled": true,
"language_server_phpstan.enabled": true
}
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
vendor: composer.json composer.lock
composer install

dev: vendor
symfony local:server:start -d
#symfony run -d yarn encore dev --watch
symfony server:log

dev-stop:
symfony local:server:stop

prod: vendor
sudo chown -R www-data:www-data var
sudo -u www-data bin/console ca:cl --env=prod
#sudo -u www-data
9 changes: 0 additions & 9 deletions app/AppCache.php

This file was deleted.

47 changes: 0 additions & 47 deletions app/AppKernel.php

This file was deleted.

2 changes: 0 additions & 2 deletions app/Resources/FOSUserBundle/views/Security/login.html.twig

This file was deleted.

13 changes: 0 additions & 13 deletions app/autoload.php

This file was deleted.

37 changes: 0 additions & 37 deletions app/config/config.yml

This file was deleted.

20 changes: 0 additions & 20 deletions app/config/config_dev.yml

This file was deleted.

19 changes: 0 additions & 19 deletions app/config/config_prod.yml

This file was deleted.

Loading
Loading