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
- Clone Bootscout-theme and navigate to the theme directory.
git clone https://github.com/JackFurby/Bootscout-theme.git
cd Bootscout-theme
- Create a conda enviroment
conda create -n bootscout-theme
- Activate conda enviroment
conda activate bootscout-theme
- Install Nodejs and update npm
conda install nodejs
npm install -g npm
- Ensure both
node
andnpm
are installed. If they are each of these commands will print the version number installed.
node -v
npm -v
- Install npm packages (including WordPress environment)
npm install
- To verify the environment installed run the following. This will print the version installed.
wp-env --version
- 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
- You can access your environment in your browser at: http://localhost:8888/, the default username is
admin
and default password ispassword
.