You have the choice to install WPHC directly on your machine (node, npm, bower are required) or you can install WPHC via bower with no other preriquisites than Docker itself.
- NodeJS
- NPM
- Bower
git clone [email protected]:shprink/wordpress-hybrid-client.git
The installation will not install anything globally to avoid potential version conflicts.
sh ./install.sh
- Docker
Install Docker on your system.
- Install instructions for Mac OS X
- Install instructions for Ubuntu Linux
- Install instructions for other platforms
Docker pull shprink/wphc
docker run -it -v /local/path/to/wordpress-hybrid-client:/wphc shprink/wphc bash
Now you should be inside you docker, try listing folders to make sure they are accessible:
root@c5d7db4eaf05:/wphc$ ls -la
You should see the WPHC files listed. If not and using boot2docker please read this https://gist.github.com/codeinthehole/7ea69f8a21c67cc07293
You are now ready to install WPHC:
root@c5d7db4eaf05:/wphc$ sh ./install.sh
Now that the installation is done two files
There are two config files, config.json
for the application configuration and config.scss
for the style configuration.
Install this plugin https://wordpress.org/plugins/json-rest-api/ to your WordPress website then add the address to the config.json
file:
"api": {
"baseUrl": "http://YourDomain/wp-json"
},
Now your Webservice is ready to be queried.