A Drupal Starterkit with GraphQL, GraphQL Twig, Gin Future UI, Minimal Frontend Setup with Webpack and Vanilla JS/Vue running on Docksal (Docker).
⚠️ REPLACED BY https://github.com/saschaeggi/drupal-lando-starterkit
Install Docker Desktop (Mac/Windows): https://www.docker.com/products/docker-desktop
Install Docksal: https://docksal.io/
Clone the repo into ~/Projects
git clone [email protected]:saschaeggi/drupal-docksal-starterkit.git && cd drupal-docksal-starterkit
fin init
https://drupal-docksal-starterkit.docksal/
fin start [or fin up]
fin stop
fin system start
fin system stop
fin bash
fin exec --in=CONTAINERNAME bash
Make sure you're in the frontend folder (cd drupal/web
)
fin drush COMAMND
Make sure you're in the frontend folder (cd drupal/web
)
fin composer COMMAND
https://drupal-docksal-starterkit.docksal/
https://drupal-docksal-starterkit.docksal/user
username: admin
password: drupal
https://drupal-docksal-starterkit.docksal/graphql
Authentication via Bearer access token.
curl --request POST \
--url https://drupal-docksal-starterkit.docksal/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-!'
https://mail.drupal-docksal-starterkit.docksal/
https://solr.drupal-docksal-starterkit.docksal/
Install
cd drupal/web/themes/frontend/
nvm use
npm install
Install dependencies in drupal/web/core
(used for linting, e.g.)
cd drupal/web/core/
nvm use 10.15.1 # no version specified, let's use the one from `drupal/web/themes/frontend/`
npm install
Run watcher
cd drupal/web/themes/frontend/
npm run dev
Compile assets
cd drupal/web/themes/frontend/
npm run prod
Scaffold components
cd drupal/web/themes/frontend/
npm run scaffold
Add the following to your /etc/hosts
:
# Drupal Docksal Starterkit
192.168.64.100 drupal.mydomain.local
::2 drupal.mydomain.local
and add your custom domain to the .docksal/docksal.env
VIRTUAL_HOST=mydomain.local
Create local settings for debugging
Rename drupal/web/sites/default/default.settings.local.php
to drupal/web/sites/default/settings.local.php