WordPress Backend
The wordpress folder contains the plugin dependencies and the Saburly Headless theme. You can add them to your existing development environment. Or if you want to install WordPress and a full dev environment, you can use the scripts from this repository. In that case, make sure you have all the required software installed for your operating system.
Prerequisites
- OS X: You'll need Homebrew and Yarn installed.
- Windows: To install under Windows you need to be running the 64-bit version of Windows 10 Anniversary Update or later (build 1607+). The Linux Subsystem for Windows should be installed and enabled before proceeding. Then, you'll need the prerequisites for Ubuntu Linux, detailed below, set up.
- Ubuntu Linux: You'll need the latest version of NodeJS, Yarn and debconf-utils installed first. Follow this simple guide to get the latest version of NodeJS installed. Install the rest of the packages using the
apt-getpackage manager. Note: During the WordPress installation, you may be asked to enter the root password at the prompt due to the use of thesudocommand
Install
The following command will get WordPress running locally on your machine, along with the WordPress plugins you'll need to create and serve custom data via the WP REST API.
> yarn install && yarn start
When the installation process completes successfully:
- The WordPress REST API is available at http://localhost:8080
- The WordPress GraphQL API is available at http://localhost:8080/graphql
- The WordPress admin is at http://localhost:8080/wp-admin/
Manual install
You can replace the wordpress folder
Frontend
The contains frontend is stored in a separate repository in Gitlab.
Description
Wordpress as CMS with Headless theme that outputs only the necessary REST API. The frontend consuming it is in a separate project.
Languages
PHP
83.6%
JavaScript
11.7%
CSS
4.3%
Shell
0.2%
SCSS
0.2%