This is the boilerplate repo for our craft5 projects.
This boilerplate uses DDEV to manage the setup of the php dev environment (which craft5 is built on).
DDEV is docker based and provides php and db management. We use mysql DBs.
We run ddev using OrbStack which runs a dockercontainer that ddev is on.
To get started:
- Install docker ddev and orbstack
- run
composer installto install all php packages - Import the db with
ddev import-db --src=path/to/your_db.sql- check that all .env variables are set up right (
CRAFT_DB_*env vars)
- check that all .env variables are set up right (
- run
ddev craft setupin the root dir- Make sure that all of the prompts match the .env
- run
ddev startin the root dir