https://github.com/zviryatko/beetroot-drupal-example
An example repository with some Drupal code and lessons example
https://github.com/zviryatko/beetroot-drupal-example
Last synced: 11 months ago
JSON representation
An example repository with some Drupal code and lessons example
- Host: GitHub
- URL: https://github.com/zviryatko/beetroot-drupal-example
- Owner: zviryatko
- Created: 2022-04-10T06:43:49.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-09T13:21:02.000Z (about 4 years ago)
- Last Synced: 2025-07-04T19:07:18.432Z (12 months ago)
- Language: PHP
- Size: 705 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drupal example project
An example project for Beetroot.Academy Drupal course.
## Setup
```bash
cp .env.dist .env
docker-compose up -d
docker-compose exec php composer install
```
Open http://drupal.localhost/install.php and install the website.
**_NOTE_**:
Database settings are stored in `web/sites/default/settings.php` but it uses env variables so no need to override, just change the `.env` file instead.
### How to export content
1. Create module, see `modules/custom/beetroot_content/beetroot_content.info.yaml`
2. Change entity types and uuid's in module info yaml.
3. Run `drush default-content:export-module beetroot_content -y`
```
drush default-content:export-references taxonomy_term 3 --folder modules/custom/beetroot_content/content
```