{"id":18400473,"url":"https://github.com/docksal/boilerplate-drupal-gatsby","last_synced_at":"2025-04-07T06:33:31.309Z","repository":{"id":42463209,"uuid":"262399901","full_name":"docksal/boilerplate-drupal-gatsby","owner":"docksal","description":"Drupal + GatsbyJS Decoupled Starter Kit powered by Docksal","archived":false,"fork":false,"pushed_at":"2023-06-10T00:46:22.000Z","size":1668,"stargazers_count":11,"open_issues_count":4,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-13T21:55:21.711Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docksal.io","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/docksal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"docksal","open_collective":"docksal"}},"created_at":"2020-05-08T18:32:45.000Z","updated_at":"2023-12-25T12:12:34.000Z","dependencies_parsed_at":"2022-09-08T22:23:42.262Z","dependency_job_id":"77d4c70f-fafd-4db2-ab66-e2ea3c2811f8","html_url":"https://github.com/docksal/boilerplate-drupal-gatsby","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":"0.13043478260869568","last_synced_commit":"f72e0fa57da5d4aaf1f54c45939ce2a6ee87c469"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docksal%2Fboilerplate-drupal-gatsby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docksal%2Fboilerplate-drupal-gatsby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docksal%2Fboilerplate-drupal-gatsby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docksal%2Fboilerplate-drupal-gatsby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docksal","download_url":"https://codeload.github.com/docksal/boilerplate-drupal-gatsby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247607752,"owners_count":20965945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T02:33:40.741Z","updated_at":"2025-04-07T06:33:27.943Z","avatar_url":"https://github.com/docksal.png","language":"PHP","funding_links":["https://github.com/sponsors/docksal","https://opencollective.com/docksal"],"categories":[],"sub_categories":[],"readme":"# Decoupled Drupal 8 with GatsbyJS Frontend\n\nA decoupled setup with Drupal 8 CMS and Gatsby frontend.\n\nFeatures:\n\n- Drupal 8 installed with Umami demo profile\n- Gatsby frontend for Umami\n- Gatsby Preview (instant content updates in frontend, locally)\n- Example of using Paragraphs Drupal module with Gatsby\n- Custom Docksal commands to automate routine tasks\n\n![drupal-gatsby-preview](https://user-images.githubusercontent.com/1205005/82586762-f3e65600-9b4c-11ea-9f42-9d131c6f4567.gif)\n\n## Setup instructions\n\n1. [Install Docksal](https://docs.docksal.io/getting-started/)\n\n2. In your \"Projects\" directory run\n\n    ```\n    fin project create --name=drupal-gatsby --repo=https://github.com/docksal/boilerplate-drupal-gatsby.git\n    cd drupal-gatsby\n    ```\n\nIf you fork/clone from here, then just run `fin init` inside the cloned repo folder. \n\nYou will get a lit of URLs at the end of the init process:\n\n```\n$ fin init\n...\nDrupal CMS:     http://cms-drupal-gatsby.docksal\nPreview server: http://preview-drupal-gatsby.docksal\nFrontend build: http://drupal-gatsby.docksal (run 'fin fe/build')\n```\n\nNote: Preview server (running `gatsby develop`) takes some time to initialize. Wait a minute then reload the page.\n\n## Custom Commands\n\nTo list custom commands, run `fin` in the project repo and see the list at the bottom of the output, e.g:\n\n```\n$ fin\n...\nCustom commands:\n  cms/code-init                 Initialize CMS codebase\n  cms/install                   Initialize/reinstall CMS\n  cms/uli                       Watch preview logs\n  fe/build                      Build frontend (static website)\n  fe/code-init                  Initialize frontend codebase\n  fe/logs                       Watch preview logs\n  init                          Initialize project from scratch (full reset)\n```\n\nThese commands are stored in `.docksal/commands/` and can be used to automate and run routine tasks.\n\n## Tips and Tricks\n\n- Use `fin bash` to get a terminal with all developer tools pre-installed\n  - **Use this instead of your local console**\n  - You can run `composer`, `drush`, `npm`, etc. without the need to install those tools locally\n- Use `fin composer` inside the `cms` folder to manage Composer dependencies  \n- Use `fin drush` inside the `cms` folder manage Drupal CMS via Drush\n- Use `fin cms/uli` (`fin drush uli`) to get a one-time admin login link for Drupal CMS\n- Use `fin fe/logs` (`fin logs -f preview`) to watch preview (`gatsby develop`) logs\n- Enable VS Code Web IDE with `fin config set --env=local IDE_ENABLED=1; fin project start` ([Learn more](https://docs.docksal.io/tools/ide/))\n\nDocksal documentation - [https://docs.docksal.io/](https://docs.docksal.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocksal%2Fboilerplate-drupal-gatsby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocksal%2Fboilerplate-drupal-gatsby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocksal%2Fboilerplate-drupal-gatsby/lists"}