openscript / vscode-dev-container-wordpress-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VSCode DevContainer Wordpress

Do you need a development, learning or teaching environment for a Wordpress project, which is quickly set up and contains all the tools you need? Maybe this is a good starting point.

You need Visual Studio Code and the Remote Containers extension.

Features

  • PHP 8.1 with GD, zip and mbstring
  • MariaDB 10.4
  • PHPMyAdmin at port 8081
  • WP CLI

First steps

  1. Download Wordpress with wp core download (https://developer.wordpress.org/cli/commands/core/download/)
    • Add --locale=de_CH or another prefered locale
    • Add --version=6.0 or another prefered version
  2. Start PHP server with php -S localhost:8080
  3. Set up Wordpress
    • Via CLI
      1. Generate a config file with wp config create --dbname=wordpress --dbuser=root --dbpass=mariadb --dbhost=db
      2. Create database with wp db create
      3. Install Wordpress with wp core install --url=localhost:8080 --title=Example --admin_user=example --admin_password=example123 --admin_email=example@example.com or import a database dump file with wp db import wordpress.sql
    • Via Browser
      1. Open PHPMyAdmin at http://localhost:8081 in your browser
      2. Create a database wordpress with utf8_general_ci as charset
      3. Visit http://localhost:8080 in your browser
      4. Fill out the form with database wordpress, database user root, database password mariadb and database host db.
      5. Fill out the site information as you like

About


Languages

Language:Dockerfile 100.0%