Custom Gutenberg block plugin to integrate proprietary services with the WordPress API.
⚠ Note: This repository has been archived and is no longer maintained.
This project was created in preparation for my Backend Engineer role at IBL Education (now ibl.ai) back in 2023.
It is no longer in active use, and there are no current or future plans to contribute to or develop this repository further.
The code and history remain available for reference. Feel free to browse or fork, but please be aware that:
- Issues and pull requests are disabled
- No support or updates will be provided
Thanks for your interest!
Learn more about developing custom blocks from the official documentation.
This is an overview of 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 set up 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)
You can clone this repo with the following command.
- Clone the repository
# cd your/desired/target/dir
$ git clone https://github.com/apexDev37/RESTblock.git restblock
$ cd restblockThis will clone the repository to a target directory on your host machine and navigate into its root directory.
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 the following code snippet.
- Create env files
# ensure you're in the project's root
$ for file in .envs/*.example; do cp "$file" "${file%.example}"; done
$ cd .envs/This will loop through all the files in
./configuration/that end with.exampleand create new files without the.exampleextension (ie,mysql.env.example->mysql.env).
