Back to Keystone

Keystone Example - framework-nextjs-two-servers

examples/framework-nextjs-two-servers/README.md

2026-03-19811 B
Original Source

Keystone Example - framework-nextjs-two-servers

An example of a frontend nextjs server and backend API server

Running the example

  1. Install dependencies

Make sure you are at the root of the repo and install dependencies.

shell
pnpm install
  1. Start Keystone and Next.js servers

Navigate from repo root to examples/framework-nextjs-two-servers and start the servers.

shell
pnpm dev

The GraphQL Server and Admin UI will start on localhost:3000.

The Next.js server will start and the homepage will be served at localhost:8000.

You can alternatively open two terminals and navigate to examples/framework-nextjs-two-servers/keystone-server and examples/framwork-nextjs-two-servers/nextjs-frontend and run pnpm dev separately.