groton-school / slim-gae-shim
Shim for Slim Skelton to run on Google App Engine
Installs: 554
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/groton-school/slim-gae-shim
Requires
- composer/composer: ^2.8
- google/cloud-logging: ^1.32
- groton-school/slim-norms: ^2.2
- php-di/php-di: ^7.0
- psr/container: ^2.0
- psr/http-message: ^2.0
- psr/log: ^3.0
- slim/slim: ^4.12
- symfony/filesystem: ^7.3
Requires (Dev)
README
Shim for Slim Skeleton to run on Google App Engine
Install
composer require groton-school/slim-gae-shim
Use
The shim expects a default slim-skeleton layout (and configures GAE to reflect this).
- In your
composer.jsonadd apost-update-cmdupdate script:
{
"scripts": {
"post-update-cmd": "GrotonSchool\\Slim\\GAE\\Scripts::installGAEFiles"
}
}
-
Run
composer update -
Add
/node_modules/to your.gitignore -
Optionally, add
*.bakto your.gitignoreto suppress backed up prior versions of the GAE config files -
Inject Google App Engine environment variables into settings:
a. Implement
SettingsInterfaceb. Define the
SettingsInterfacedependency -
Optionally (but recommendedly), suppress error log messages about Google App Engine start/stop requests by defining routes for those requests
-
Deploy to Google App Engine using the Node
deploywizard provided.a. Configure a Billing Account with your Google Cloud account, if not already done.
c. Install Node dependencies with the package manager of your choice (e.g.
pnpm install)d. Run the deploy wizard (
pnpm run deploy) interactively (after the first run, this will set environment variables to allow it to be run non-interactively in the future)
groton-school/slim-skeleton@dev-gae/app
groton-school/slim-skeleton is the canonical example of how this shim is meant to be used.