-
Clone the Repository
- Clone the repository to your local machine:
git clone <repository-url> cd <repository-directory>
- Clone the repository to your local machine:
-
Install Lando
- Ensure Lando is installed on your machine. If not, follow the installation guide from the Lando documentation.
-
Start Lando
- Start the Lando environment from the project directory:
lando start
- Start the Lando environment from the project directory:
-
Import the Database
- Import the provided database file:
lando db-import <file_name.sql>
- Import the provided database file:
-
Access the WordPress Site
- Access the local WordPress site via the Lando URL (typically
http://<project-name>.lndo.site
).
- Access the local WordPress site via the Lando URL (typically
-
Set Up Environment Variables
- Configure the environment variables in the
.env
file located in the project root:DB_NAME='your_db_name' DB_USER='your_db_user' DB_PASSWORD='your_db_password' DB_HOST='localhost' WP_ENV='development' WP_HOME='http://<project-name>.lndo.site' WP_SITEURL='http://<project-name>.lndo.site/wp'
- Configure the environment variables in the
-
Install Composer Dependencies
- Install the necessary dependencies using Composer:
lando composer install
- Install the necessary dependencies using Composer:
-
Install Node.js Dependencies
- Install the necessary dependencies using npm or Yarn:
lando npm install
- Install the necessary dependencies using npm or Yarn:
-
Build Assets
- Build the necessary frontend assets:
lando npm run build
- Build the necessary frontend assets: