This projects represents an example of building plugins using external API service and integrating that data into the Gutenberg blocks.
- WordPress (the latest version, the better)
- Active Gutenberg editor (Not disabled)
- PHP: 7.2 or above
- Composer autoloader
- Node package manager
- 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
- Run
npm run bundle-base
and the filepredic-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 filepredic-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.
- Clone the repository
- Visit each plugin folder and run
npm install
andcomposer install
- Zip the plugin folders and upload them to your WP installation
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
Each plugin folder contains its own readme file with precise instructions and descriptions. Please visit each to learn more detalis.
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]