Giter Club home page Giter Club logo

wpdd's Introduction

WP DryDock

Local WordPress Development with Docker.

Why?

  • ~5 Minute Setup.
  • Uses Dotenv for environment variable management.
  • Uses PSR-4 Autoloader to encapsulate functionality.
  • Keeps content separate from core
  • Keeps functionality separate from theme.
  • Uses Laravel Mix as a wrapper for Webpack to compile styles and scripts.

Setup

  • Download and install Docker
  • Clone this repository to your working directory.
  • Copy ./.env.dev to ./.env
  • From your project root, run docker compose up -d
  • From your project root, run docker exec -ti wpdd-php bash
  • This logs you in to the php container at: /var/www/html
  • From /var/www/html run ./buildfresh.sh Windows Note
  • In a browser, visit http://localhost
  • Configure WordPress
  • Activate the Keel theme.
  • Develop.
  • From your project root, run docker exec -ti wpdd-php bash to log in to the PHP container.
  • From /var/www/html, run npm run watch to watch & compile scripts & styles.
  • To log out of the PHP container type exit
  • To shut down Docker services, from your project root, run docker-compose down

PSR-2

Semver
Given a version number MAJOR.MINOR.PATCH, increment the:

  • MAJOR version when you make incompatible API changes,
  • MINOR version when you add functionality in a backwards-compatible manner, and
  • PATCH version when you make backwards-compatible bug fixes.

If you encounter an error while running ./buildfresh.sh:

  • Open buildfresh.sh in a text editor
  • Change the file's line endings to LF.
  • Re-run ./buildfresh.sh
  • If error persists:
  • From: /var/www/html run chmod +x ./buildfresh.sh

License

GNU GPL v3.0 or Later

Version 1.1.0

  • Add Open Graph Support

Version 1.0.0 โ€”

  • Falling Into Infinity.

wpdd's People

Contributors

rdbinteractive avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wpdd's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.