## 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](https://brew.sh/) and [Yarn](https://yarnpkg.com/en/) 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](https://msdn.microsoft.com/en-us/commandline/wsl/install_guide) 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](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions) to get the latest version of NodeJS installed. Install the rest of the packages using the `apt-get` package manager. _Note: During the WordPress installation, you may be asked to enter the root password at the prompt due to the use of the `sudo` command_ ### 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. ```zsh > yarn install && yarn start ``` When the installation process completes successfully: * The WordPress REST API is available at [http://localhost:8080](http://localhost:8080) * The WordPress GraphQL API is available at [http://localhost:8080/graphql](http://localhost:8080/graphql) * The WordPress admin is at [http://localhost:8080/wp-admin/](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.