A tiny starter that mixes Next.js 15 with Payload CMS so you can publish your blog posts.
- Next.js 15 with App Router
- Payload CMS
- Postgres
- Seed scripts for: admin, articles, article authors
- Media blur hash generator hook
- Simple UI for blog posts
- Docker (untested)
- Install deps:
pnpm install - Create an
.envfile with:# NOTE: if you update DB name here, make sure to update it in `package.json` as well DATABASE_URI=postgres://<user>:<password>@localhost:5432/payload_next_blog PAYLOAD_SECRET=replace-me CMS_SEED_ADMIN_EMAIL=admin@example.com CMS_SEED_ADMIN_PASSWORD=super-secret
- Get Postgres running (use your own setup or
docker-compose.yml(untested)) - Optional: seed demo content with
pnpm seed - Start the dev server:
pnpm devand visithttp://localhost:3000
The Payload admin lives at http://localhost:3000/admin. If you seeded data, the credentials in .env log you in right away.