A Drupal Starterkit with GraphQL, GraphQL Twig, Gin Future UI, Minimal Frontend Setup with Webpack and Vanilla JS/Vue running on Lando (Docker).
Install Lando: https://docs.lando.dev/basics/installation.html
Clone the repo
git clone git@github.com:saschaeggi/drupal-lando-starterkit.git drupal-lando-starterkit && cd drupal-lando-starterkit
lando start
https://drupal-lando-starterkit.lndo.site/
lando start
lando stop
lando poweroff
lando ssh
Make sure you're in the frontend folder (cd web
)
lando drush COMAMND
Make sure you're in the frontend folder (cd web
)
lando composer COMMAND
lando xdebug-on
### Stop Xdebug
lando xdebug-off
https://drupal-lando-starterkit.lndo.site/
https://drupal-lando-starterkit.lndo.site/user
username: admin
password: drupal
https://drupal-lando-starterkit.lndo.site/graphql
Authentication via Bearer access token.
curl --request POST \
--url https://drupal-lando-starterkit.lndo.site/oauth/token \
--header 'content-type: application/x-www-form-urlencoded' \
--data grant_type=password \
--data username=api \
--data password=drupal \
--data client_id=104a2b89-02fc-4501-aebc-2ec7766cc84f \
--data 'client_secret=7U9_kQ_@ozhHi!.v-!'
Install
cd web/themes/frontend/
nvm use
npm install
Run watcher
cd web/themes/frontend/
npm run dev
Compile assets
cd web/themes/frontend/
npm run prod
Scaffold components
cd web/themes/frontend/
npm run scaffold
Create local settings for debugging
Rename web/sites/default/default.settings.local.php
to web/sites/default/settings.local.php