Setup a new wordpress installation to be used as an API.
PHP 7+
Install Composer Install Wp-cli
- If you are running a LAMP stack, make sure you have mysql installed on localhost
- If you are running MAMP, make sure it is running on localhost
Follow the steps:
- Open up the
.env.example
file and edit your database credentials. - Make sure that your
WP_ROOT_DIRECTORY
variable is the same name than your containing folder. - Remove the
.example
from the file name. - Go to your folder in the terminal and simply write
make
and enter.
That's it !