Use and adapt e-store
Use and adapt e-store: A Payload website template with a content backend, admin panel, and pages for websites, blogs, and portfolios.
Use the documented interfaces and source layout for e-store. The sections below retain the README’s examples and configuration details.
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.
Commands in the root manifest
The captured package.json declares the following scripts. Run them from the directory containing that manifest.
| Command | Script |
|---|---|
npm run dev | cross-env PAYLOAD_CONFIG_PATH=src/payload/payload.config.ts nodemon |
npm run build | cross-env NODE_ENV=production yarn build:payload && yarn build:server && yarn copyfiles && yarn build:next |
npm run serve | cross-env PAYLOAD_CONFIG_PATH=dist/payload/payload.config.js NODE_ENV=production node dist/server.js |
npm run lint | eslint src |
Troubleshoot a local change
- Reproduce the smallest example from the quick-start guide.
- Compare required configuration and dependency versions with the README.
- Check the linked issue tracker for the same error. Include the command, runtime version, and relevant error when reporting a problem; omit credentials.
Source and help
Source captured: 2026-10-11
