Quick Start
Quick Start
Get your local WordPress development environment up and running in under 5 minutes using our standardized containerized workflow.
Prerequisites
Ensure you have the following tools installed on your machine:
- Docker & Docker Compose
- Node.js (LTS version)
- Composer (for PHP dependency management)
1. Clone the Repository
Begin by cloning the repository and navigating into the project directory:
git clone https://github.com/UditAkhourii/wordpress.git
cd wordpress
2. Initialize Environment Configuration
Copy the example environment file to create your local .env file. This file contains the database credentials and WordPress configuration constants.
cp .env.example .env
Note: For local development, the default values in .env.example are pre-configured to work with the Docker setup.
3. Install Dependencies
Install the required PHP packages and JavaScript dependencies for the build tools:
# Install WordPress core and plugin dependencies
composer install
# Install build tools and local utilities
npm install
4. Spin Up the Environment
Launch the Docker containers. This will pull the necessary images and initialize the WordPress site, database, and web server.
docker-compose up -d
5. Access the Development Site
Once the containers are active, you can access the site and dashboard using the following credentials:
- Local URL: http://localhost:8080
- Admin Dashboard: http://localhost:8080/wp-admin
- Username:
admin - Password:
password
Common Commands
| Action | Command |
| :--- | :--- |
| Stop Environment | docker-compose down |
| View Logs | docker-compose logs -f |
| Run WP-CLI | docker-compose run --rm wp-cli <command> |
| Compile Assets | npm run dev |