From 176827a3a4807a8dbda8fa7068fdafc4b9f7c587 Mon Sep 17 00:00:00 2001 From: Arman <407448+armanist@users.noreply.github.com> Date: Mon, 19 Oct 2026 00:37:36 +0400 Subject: [PATCH 1/5] [#203] Add cache folder and ignore its runtime files --- .gitignore | 2 ++ cache/.gitkeep | 0 2 files changed, 2 insertions(+) create mode 100644 cache/.gitkeep diff --git a/.gitignore b/.gitignore index 2a12895..ae715fe 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,8 @@ debug.log /shared/store/* /shared/emails/* /shared/config/auth.php +/cache/* +!/cache/.gitkeep # Generated modules /modules diff --git a/cache/.gitkeep b/cache/.gitkeep new file mode 100644 index 0000000..e69de29 From da9094fe8305569dac5da210c77bb1638c308c3a Mon Sep 17 00:00:00 2001 From: Arman <407448+armanist@users.noreply.github.com> Date: Mon, 19 Oct 2026 00:58:19 +0400 Subject: [PATCH 2/5] [#203] Remove the Hook, Loader and libraries leftovers --- hooks/.gitkeep | 0 libraries/.gitkeep | 0 phpstan.neon.dist | 2 -- rector.php | 2 -- shared/config/dependencies.php | 11 ----------- shared/config/hooks.php | 12 ------------ tests/_root/shared/config/dependencies.php | 5 ----- tests/_root/shared/config/hooks.php | 5 ----- 8 files changed, 37 deletions(-) delete mode 100644 hooks/.gitkeep delete mode 100644 libraries/.gitkeep delete mode 100644 shared/config/dependencies.php delete mode 100644 shared/config/hooks.php delete mode 100644 tests/_root/shared/config/dependencies.php delete mode 100644 tests/_root/shared/config/hooks.php diff --git a/hooks/.gitkeep b/hooks/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/libraries/.gitkeep b/libraries/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 8986f56..4fc4a06 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -4,8 +4,6 @@ parameters: paths: - shared - helpers - - hooks - - libraries - migrations - public/index.php excludePaths: diff --git a/rector.php b/rector.php index 8ca81f6..cacb402 100644 --- a/rector.php +++ b/rector.php @@ -11,8 +11,6 @@ return RectorConfig::configure() ->withPaths([ __DIR__ . '/helpers', - __DIR__ . '/hooks', - __DIR__ . '/libraries', __DIR__ . '/migrations', __DIR__ . '/public/index.php', __DIR__ . '/shared', diff --git a/shared/config/dependencies.php b/shared/config/dependencies.php deleted file mode 100644 index 0b0ccc6..0000000 --- a/shared/config/dependencies.php +++ /dev/null @@ -1,11 +0,0 @@ - Quantum\Loader\Setup::class, - \Shared\Transformers\PostTransformer::class => \Shared\Transformers\PostTransformer::class, -]; diff --git a/shared/config/hooks.php b/shared/config/hooks.php deleted file mode 100644 index cb06a2f..0000000 --- a/shared/config/hooks.php +++ /dev/null @@ -1,12 +0,0 @@ - Date: Mon, 19 Oct 2026 00:59:19 +0400 Subject: [PATCH 3/5] [#203] Remove the unused Travis CI configuration --- .travis.yml | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d464d6d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: php -php: - - 7.3 - - 7.4 - -before_script: - - composer self-update - - composer update - -script: - - vendor/bin/phpunit From 81f11d09fb13897d039d231893881b6f21fa38a4 Mon Sep 17 00:00:00 2001 From: Arman <407448+armanist@users.noreply.github.com> Date: Mon, 19 Oct 2026 01:03:58 +0400 Subject: [PATCH 4/5] [#203] Add the Resend mailer config --- .env.example | 3 +++ shared/config/mailer.php | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.env.example b/.env.example index 8c26531..828020c 100644 --- a/.env.example +++ b/.env.example @@ -29,6 +29,9 @@ MAILGUN_DOMAIN= #Mandrill MANDRILL_APIKEY= +#Resend +RESEND_APIKEY= + #Recaptcha RECAPTCHA_SITE_KEY= RECAPTCHA_SECRET_KEY= diff --git a/shared/config/mailer.php b/shared/config/mailer.php index f8b344a..535c55e 100644 --- a/shared/config/mailer.php +++ b/shared/config/mailer.php @@ -36,4 +36,8 @@ 'mandrill' => [ 'api_key' => env('MANDRILL_APIKEY', null), ], + + 'resend' => [ + 'api_key' => env('RESEND_APIKEY', null), + ], ]; From ed0f236ba02d965c9a2ae08329913bbc473a40e9 Mon Sep 17 00:00:00 2001 From: Arman <407448+armanist@users.noreply.github.com> Date: Mon, 19 Oct 2026 01:13:38 +0400 Subject: [PATCH 5/5] [#203] Add an API smoke test to CI --- .github/workflows/php.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index f321450..8ec383c 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -56,3 +56,24 @@ jobs: - name: Run tests run: composer test + + - name: Generate the demo API module + run: php qt module:generate Api --template=DemoApi --yes + + - name: Smoke test the API + run: | + php qt serve --host=127.0.0.1 --port=8000 > server.log 2>&1 & + for i in $(seq 1 20); do + curl -s -o /dev/null http://127.0.0.1:8000/ && break + sleep 1 + done + status=$(curl -s -o response.json -w '%{http_code}' http://127.0.0.1:8000/api/posts) + echo "GET /api/posts returned $status" + cat response.json + echo + if [ "$status" != "200" ]; then + echo "Expected 200. Server log:" + cat server.log + exit 1 + fi + grep -q '"status":"success"' response.json