heyblackmagic/foundation-ddev

Craft CMS - DDEV scafold

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:Twig

Type:project

v1.0.2 2024-04-04 19:46 UTC

This package is auto-updated.

Last update: 2024-04-26 21:28:04 UTC


README

Requirements

Make sure you have Orbstack and DDEV installed.

Stack

  • PHP 8.2 (this can be changed in config.yaml)
  • MySql 8
  • Craft CMS ^5
  • Vite
  • Tailwind CSS
  • Client fascing plugins included:
    • craftcms/ckeditor
    • verbb/hyper
    • solspace/craft-freeform
    • nystudio107/craft-seomatic
    • verbb/navigation

Getting started

Run composer create-project heyblackmagic/foundation-ddev [project-name].

Go to .ddev/ > config.yaml > change the name (line 1) of the container to the desire one (no spaces allowed).

Run ddev start to create the container instance. This will create an instance using nginx, php 8.2, mysql 8 and composer.

Run ddev craft install to create your Craft CMS instance. Accept DB password DB user and Site URL defaults [square brackets].

After this the project should be running in your Orbstack image and it should be accesible with the following url (same as in craft installation) https://[project-name-in-step-1].ddev.site

Before moving forward:

  • Go to your admin panel at: https://[project-name-in-step-1].ddev.site/admin - and enable any plugins that didn't automatically enabled during setup.

Commands

Use any composer or npm command with the prefix ddev:

  • Run ddev npm run dev to watch files to start development.
  • Run ddev npm run build to build assets.
  • Run ddev craft ... to explore the Craft CLI
  • Done for the day? ddev stop will spin down any containers for the project and free up system resources. ddev start boots everything back up, right where you left off.