Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

Repository files navigation

REST Block

Custom Gutenberg block plugin to integrate proprietary services with the WordPress API.

WordPress + Gutenberg logo

status: archived

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!

Introduction

Learn more about developing custom blocks from the official documentation.

Installing / Getting started

This is an overview of the minimal setup needed to get started.

Prerequisites

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.

Local Setup

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 restblock

This will clone the repository to a target directory on your host machine and navigate into its root directory.

Configuration

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 .example and create new files without the .example extension (ie, mysql.env.example -> mysql.env).

About

A custom Gutenberg block that provisions an OAuth 2.0 secured internal REST API and client to integrate into WordPress.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages