Starting a Project¶
Once DDEV is installed, setting up a new project should be quick:
- Clone or create the code for your project.
cd
into the project directory and runddev config
to initialize a DDEV project.- Run
ddev start
to spin up the project. - Run
ddev launch
to open your project in a browser.
DDEV can automatically detect your project type and docroot. If it guessed wrong or there’s something else you want to change, use the ddev config
command or update project options by editing .ddev/config.yaml
. You can see the result by running ddev describe
.
What is the php
project type?
A php
project type is the most general, ready for whatever modern PHP or static HTML/JS project you might be working on. It’s as full-featured as other CMS-specific options, without any assumptions about your configuration or presets. (You can use this with a CMS or framework fine!)
If you need to configure your app to connect to the database, the hostname, username, password, and database name are all db
.
While you’re getting your bearings, use ddev describe
to get project details, and ddev help
to investigate commands.
Next, you may want to run ddev composer install
, import a database, or load user-managed files.
If you’re new to DDEV, check out Using the ddev
Command for an overview of what’s available.