Development
To spin up this example locally, follow the Quick Start. Then Seed the database with a few pages, posts, and projects.
Docker
Alternatively, you can use Docker to spin up this template locally. To do so, follow these steps:
- Follow steps 1 and 2 from above, the docker-compose file will automatically use the
.envfile in your project root - Next run
docker-compose up - Follow steps 4 and 5 from above to login and create your first admin user
That's it! The Docker instance will help you get up and running quickly while also standardizing the development environment across your teams.
Seed
To seed the database with a few pages, posts, and projects you can run yarn seed. This template also comes with a GET /api/seed endpoint you can use to seed the database from the admin panel.
The seed script will also create two users for demonstration purposes only:
- Demo Author
- Email:
demo-author@payloadcms.com - Password:
password - Role:
admin
- Email:
- Demo User
- Email:
demo-user@payloadcms.com - Password:
password - Role:
user
- Email:
NOTICE: seeding the database is destructive because it drops your current database to populate a fresh one from the seed template. Only run this command if you are starting a new project or can afford to lose your current data.
Source captured: 2026-10-11