Installation
A step-by-step guide to set up a new project from our Payload CMS boilerplate.
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 organization.
Step 1: Create a GitHub Repository
Section titled “Step 1: Create a GitHub Repository”- Navigate to our GitHub organization page
- Click the “New” button to create a new repository
- Enter your project name as the repository name. Do not use dashes or spaces.
- In the “Template” section, select
Instance-Studio/payloadcmsboilerplate - Click “Create repository”
Step 2: Configure the Project
Section titled “Step 2: Configure the Project”- Clone your new repository to your local machine
- Open the
.ddev/config.yamlfile - Change the
namefrompayloadcmsboilerplateto your new repository’s name
name: yourrepositoryname# ... rest of the file- Open the
.env.examplefile and update the following values:- Replace all occurrences of
payloadcmsboilerplate(and its variants like “Payloadcms Boilerplate”) with your project’s name - Generate and set a new, secure value for
PAYLOAD_SECRET. You can use a tool like payloadsecret.io
- Replace all occurrences of
PAYLOAD_SECRET=your-new-generated-secret-hereDATABASE_URI=postgres://db:db@db:5432/db
NEXT_PUBLIC_SERVER_URL=https://your-repository-name.ddev.siteNEXT_PUBLIC_SITE_NAME="Your Project Name"- Duplicate the
.env.examplefile and name the copy.env
Step 3: Start the Development Environment
Section titled “Step 3: Start the Development Environment”- Start the Docker-based environment with:
ddev startThe first startup may take a few minutes as it downloads and initializes all the necessary containers.
- Once DDEV is running, install the project’s Node.js dependencies:
ddev pnpm install- Start the NextJS development server:
ddev pnpm devYour local development site is now running! You can access it in your browser.
Step 4: Create Your First User
Section titled “Step 4: Create Your First User”- Navigate to the
/adminroute in your browser (e.g.,https://your-repository-name.ddev.site/admin) - You will see the “Create First User” screen. Please use the following format for consistency, even in local development:
- Email:
payload@instance.studio - Password: A strong, randomly generated 16-character password
- Email: