Development enviroment setup - JackFurby/Bootscout-theme GitHub Wiki

Getting your development environment setup

Credit: This guide is based on the steps from Wordpress.org and can be found here.

This guide assumes you have conda/anaconda and docker installed on your system.

Quick start

  1. Clone Bootscout-theme and navigate to the theme directory.
git clone https://github.com/JackFurby/Bootscout-theme.git
cd Bootscout-theme
  1. Create a conda enviroment
conda create -n bootscout-theme
  1. Activate conda enviroment
conda activate bootscout-theme
  1. Install Nodejs and update npm
conda install nodejs
npm install -g npm
  1. Ensure both node and npm are installed. If they are each of these commands will print the version number installed.
node -v
npm -v
  1. Install npm packages (including WordPress environment)
npm install
  1. To verify the environment installed run the following. This will print the version installed.
wp-env --version
  1. Start the WordPress development environment. As we are already in the theme directory, the theme will be installed on the local WordPress site but you may need to activate it yourself.
wp-env start
  1. You can access your environment in your browser at: http://localhost:8888/, the default username is admin and default password is password.