Skip to content

This projects represents an example of building plugins using external API service and integrating the data into the Gutenberg blocks.

Notifications You must be signed in to change notification settings

AleksandarPredic/predic-gutenberg-blocks

Repository files navigation

Gutenberg example project

Description

This projects represents an example of building plugins using external API service and integrating that data into the Gutenberg blocks.

Dependencies

  • WordPress (the latest version, the better)
  • Active Gutenberg editor (Not disabled)
  • PHP: 7.2 or above
  • Composer autoloader
  • Node package manager

Development process

  • Clone the repository
  • Run npm install
  • Visit every plugin README.md file and follow the instructions for the installation
  • The advice is to use Symbolic links to link the folders to the external WP installation and not to copy the whole repository to the wp-content/plugins directory

Generate plugin zip file for the production

  • Run npm run bundle-base and the file predic-api-base.zip will be generated in the repository root directory. This is a file you can upload to your WP site.
  • Run npm run bundle-blocks and the file predic-blocks.zip will be generated in the repository root directory. This is a file you can upload to your WP site.

This zip files will already have installed composer vendor files ready for the production, so you have no extra work to do.

Manual plugin zip and production setup

  • Clone the repository
  • Visit each plugin folder and run npm install and composer install
  • Zip the plugin folders and upload them to your WP installation

Test ready plugin zip files

If you just want to upload you files and play, but don't want to run all this commands, then you are all set :)

In the repository root directory we already included both plugin files, ready for the upload to your WP installation. Just upload these files:

  • predic-api-base.zip
  • predic-blocks.zip

Plugin descriptions and installation instructions

Each plugin folder contains its own readme file with precise instructions and descriptions. Please visit each to learn more detalis.

Files

predic-api-base/ [API base files]
predic-blocks/ [Blocks plugin files]
.editorconfig
.gitignore
.php_cs
package.json
package-lock.json
predic-api-base.zip [Plugin zip ready for upload]
predic-blocks.zip [Plugin zip ready for upload]

About

This projects represents an example of building plugins using external API service and integrating the data into the Gutenberg blocks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published