This template is using Bedrock, an open source project and completely free to use.
This project uses Sage theme which is an advanced WordPress starter theme with Tailwind CSS and Laravel Blade support out of the box.
Make sure you have Docker and Lando installed on your system
After cloning the repository, create .env from an .env.example
cp .env.example .envGenerate salts by pasting the environment variables from roots website
First, stop all Docker containers to avoid conflicts
docker stop $(docker ps -qa)Change into root and run (you might not need this step)
sudo chmod u+x ./bootstrap.shthen start the development environment
./bootstrap.shIf the development environment is working correctly, you can skip to configuring .htaccess.
If an automated setup fails for some reason or you don't trust shell scripts, you'll need to start development environment manually
First, start the projects' lando dev environment
lando startafter containers are up, install dependencies from project root and theme folder:
lando composer installand
cd web/app/themes/sage
lando composer install
Install and build node dependencies (might not need this step)
lando yarn
lando yarn buildNext you'll need to load demo database that's in projects' root directory, from project root run
lando wp db create
lando db-import demo.*
In order for permalinks to work correctly you'll manually need to update .htaccess, go to permalinks admin page and save settings.
You can follow this guide if you find browser warnings anoying, beware if you use firefox as it controls it's own store and it needs additional browser configuration.
NOTE:
The credentials for admin account are weak since this is a development environment and should be changed / removed before deployment.
username: admin
password: passwordgo to: https://wordpress.lndo.site
for hmr capabilities: http://localhost:3000