a custom block to blockify the famous Hello Dolly, plugin
Gutenblock is a repository made to get-started with custom blocks targeted for the new WordPress editor, Gutenberg. The custom block was developed locally using docker compose. Choosing the Hello-Dolly plugin is a great way for beginners to get started with block development. Follow the git commit history on how Gutenblock was created. Share any comments, feedback, or inquires. I always love to hear and learn from the community❤
Learn more about developing custom blocks from the official documentation.
This is an overview on the minimal setup needed to get started.
- Git
- Docker
- Docker Compose
- Docker Desktop
- Node v14.0.0+
- IDE/Code/Text editor (PHPStorm, VScode, Vim, etc)
Follow these tutorials on setting up Docker and Compose on either Mac or Linux. I'd recommend Microsoft's documentation to setup Docker on WSL2 if you're on Windows. Use this guide to install on your host machine Node v14, which is the recommended version in the custom block developer handbook.
The following setup was run on Ubuntu Focal (20.0.4 LTS)
Gutenblock has a single branch main
.
You can clone this repo with the following command.
- Clone repository
# cd your/desired/target/dir
$ git clone https://github.com/apexDev37/Gutenblock.git
$ cd Gutenblock
This will clone the repository to a target dir on your host machine and navigate into its root dir.
Before running WordPress with docker compose, configure the required environment variables defined in the ./configuration
directory. Example env
files are provided to configure the following instances: WordPress, MySQL, and phpMyAdmin.
You can create env
files with following code snippet.
- Create env files
# ensure your in the project root
$ cd configuration/
$ git clone https://github.com/apexDev37/Gutenblock.git
$ cd Gutenblock