This is the Drupal 9 codebase for the JSON:API backend used by the DruxtJS demonstration site.
This codebase is derived from the amazeeio/drupal-example-simple template.
OR
-
Checkout this project repo and confirm the path is in Docker's file sharing config - https://docs.docker.com/docker-for-mac/#file-sharing
git clone https://github.com/druxt/demo-api.druxtjs.org.git demo-api.druxtjs.org && cd $_
-
Make sure you don't have anything running on port 80 on the host machine (like a web server) then run
pygmy up -
Build and start the build images:
docker-compose up -d docker-compose exec cli composer install -
Visit the new site @
http://demo-api-druxtjs-org.docker.amazee.io
- If any steps fail, you're safe to rerun from any point. Starting again from the beginning will just reconfirm the changes.
This repository is set up with a .lando.yml file, which allows you to use Lando instead of pygmy for your local development environment.
-
Checkout the project repo and confirm the path is in Docker's file sharing config - https://docs.docker.com/docker-for-mac/#file-sharing
git clone https://github.com/druxt/demo-api.druxtjs.org.git demo-api.druxtjs.org && cd $_
-
Make sure you have pygmy stopped. Run
pygmy stopto be sure. -
We already have a Lando file in this repository, so we just need to run the following command to get Lando up:
lando start- Install your Drupal site with Drush:
lando drush si -y- And now we have a fully working local Drupal site on Lando! For more information on how to deploy your site, check out our documentation or our deployment demo.