Installation
In this guide you will create a new project from the PayloadCMS Boilerplate, configure your local environment, and have a running development site.
Prerequisites
Section titled “Prerequisites”Before you begin, ensure you have the following installed and set up:
- DDEV: Our local development environment.
- A Code Editor: Such as Visual Studio Code.
- A GitHub Account: With access to the required organisation.
-
Create your repository
Go to GitHub and click New repository. Name it using your project name (no dashes or spaces), select
Instance-Studio/payloadcmsboilerplateas the template, then click Create repository. -
Clone and configure
Terminal window git clone https://github.com/your-org/your-repo-name.gitcd your-repo-nameUpdate DDEV config in
.ddev/config.yaml:name: your-repo-nameSet up environment variables:
Terminal window cp .env.example .envEdit
.envand update:PAYLOAD_SECRET— Generate one at payloadsecret.ioNEXT_PUBLIC_SERVER_URL—https://your-repo-name.ddev.siteNEXT_PUBLIC_SITE_NAME— Your project display name
-
Start development
Terminal window ddev start # Start Docker containersddev pnpm install # Install dependenciesddev pnpm dev # Start Next.js dev serverYour site will be available at
https://your-repo-name.ddev.site. -
Create your admin user
Visit
/adminon your local site and create your first user:Field Value Email payload@instance.studioPassword Strong 16+ character password Role Admin