https://github.com/robertoperuzzo/drupal-starter
This is a starter kit for Drupal projects using Platform.sh as hosting and Docker4Drupal as local dev environment.
https://github.com/robertoperuzzo/drupal-starter
docker drupal
Last synced: 12 months ago
JSON representation
This is a starter kit for Drupal projects using Platform.sh as hosting and Docker4Drupal as local dev environment.
- Host: GitHub
- URL: https://github.com/robertoperuzzo/drupal-starter
- Owner: robertoperuzzo
- Created: 2018-03-01T08:20:29.000Z (about 8 years ago)
- Default Branch: gitpod-drupal-10.x
- Last Pushed: 2023-10-18T13:26:24.000Z (over 2 years ago)
- Last Synced: 2024-11-13T13:28:04.148Z (over 1 year ago)
- Topics: docker, drupal
- Language: PHP
- Homepage:
- Size: 365 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project name
> Ex. The project contains the company's website.



## Using as a reference
You can use this repository as a reference for your own Drupal projects, and borrow whatever you need.
## Create new project
```sh
composer create-project robertoperuzzo/drupal-starter:dev-gitpod-drupal-10.x my-project-folder
```
## How does this starter kit differ from vanilla Drupal in Drupal.org?
We added DDEV configuration in `.ddev` folder.
## Starting your local environment
First of all you need [Docker](https://www.docker.com/get-started) and [DDEV](https://ddev.com/get-started/).
### 1. Clone the project
Clone this repository wherever you want
git clone git@.... [project-folder-name]
cd [project-folder-name]
### 2. Build
Start local environment and install drupal from scratch using the current configurations
ddev build
## Environment management commands
Here some useful commands to manage your local environment.
### Local deployment
When you download new code (`git pull` from repository) you need to run
the following commands in order to sync your local environment:
ddev composer install --prefer-dist
ddev robo scaffold
ddev robo deploy
### Export/import configuration
When you change some configuration you have to run:
ddev robo config:export
If you need to sync your local configuration you have to run:
ddev robo config:import
### Export/import database
If you need to export the database dump you have to run:
ddev robo database:export
If you need to import the database dump you have to run:
ddev robo database:import [/path/of/dump.sql]
## Contrib Modules
This starter kit contains the following contrib modules dependencies:
| Module name | Package |
| --------------------------------------------------------------------------------- | ------------------------------ |
| [Admin Toolbar](https://www.drupal.org/project/admin_toolbar) | drupal/admin_toolbar |
| [Chaos tool suite (ctools)](https://www.drupal.org/project/ctools) | drupal/ctools |
| [Config Filter](https://www.drupal.org/project/config_filter) | drupal/config_filter |
| [Config Ignore](https://www.drupal.org/project/config_ignore) | drupal/config_ignore |
| [Configuration Split](https://www.drupal.org/project/config_split) | drupal/config_split |
| [Mail System](https://www.drupal.org/project/mailsystem) | drupal/mailsystem |
| [Metatag](https://www.drupal.org/project/metatag) | drupal/metatag |
| [Monolog](https://www.drupal.org/project/monolog) | drupal/monolog |
| [Pathauto](https://www.drupal.org/project/pathauto) | drupal/pathauto |
| [Redirect](https://www.drupal.org/project/redirect) | drupal/redirect |
| [Reroute Email](https://www.drupal.org/project/reroute_email) | drupal/reroute_email |
| [Simple XML sitemap](https://www.drupal.org/project/simple_sitemap) | drupal/simple_sitemap |
| [Sitemap](https://www.drupal.org/project/sitemap) | drupal/sitemap |
| [Stage file proxy](https://www.drupal.org/project/stage_file_proxy) | drupal/stage_file_proxy |
| [Token](https://www.drupal.org/project/token) | drupal/token |
| [Twig Tweak](https://www.drupal.org/project/twig_tweak) | drupal/twig_tweak |
| [Permissions filter](https://www.drupal.org/project/permissions_filter) | drupal/permissions_filter |