Simple structured staring point for api-based WordPress builds. Project structure loosely based on roots/bedrock. The aim of this project is to provide a simple semi headless cms for when the WP Rest api is overkill.
- api theme adapted to output json on any/all routes
- simple user defined routes
- caching with transients
- php >= 7.1
- MySQL >= 4.0
- composer
- ACF pro license key
git clone [email protected]:jghlt/bp-wordpress-api.git
cd bp-wordpress-api
- rename
.env.example
to.env
and fill out the necessary config - add salts to
config/config.php
- run
composer install
- rename
wp-config.example.php
towp-config.php
and move topublic/wp
- set up hosts/vhosts
- visit
http://example.com/wp/wp-admin
and run through the install
- add routes here >
public/app/themes/api/includes/routes.php
- add methods here >
public/app/themes/api/includes/project.php
- routing docs here