Skip to content

Latest commit

 

History

History
 
 

README.md

name Payload with Next.js Starter
slug cms-payload
description Next.js app with Payload, all in one repo.
framework Next.js
useCase
Starter
css CSS Modules
deployUrl https://vercel.com/new/git/external?repository-url=https://github.com/vercel/examples/tree/main/starter/cms-payload&project-name=cms-payload&repository-name=cms-payload
demoUrl https://nextjs-vercel.payloadcms.com
relatedTemplates
blog-starter-kit
nextjs-boilerplate
isr-blog-nextjs-wordpress

Next + Payload Serverless Demo

This example shows how to utilize @payloadcms/next-payload to deploy Payload serverless, in the same repo alongside of a Next.js app.

Demo

https://cms-payload.vercel.app

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

Clone and Deploy

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example cms-payload cms-payload-app
yarn create next-app --example cms-payload cms-payload-app
pnpm create next-app --example cms-payload cms-payload-app

Deploy it to the cloud with Vercel (Documentation).

Fill out the same environment variables that are shown in the .env.example with your own values, and then you're good to go!

Developing locally

To develop with this package locally, make sure you have the following required software:

  1. MongoDB
  2. Node + NPM / Yarn
  3. An S3 bucket to store media (optional)

Getting started

Follow the steps below to spin up a local dev environment:

  1. Clone the repo
  2. Run yarn or npm install
  3. Run cp .env.example .env and fill out all ENV variables as shown
  4. Run yarn dev to start up the dev server

From there, you can visit your admin panel via navigating to http://localhost:3000/admin. Go ahead and start working!