| title | Local Development |
|---|---|
| description | Steps to run the monorepo on your machine. |
- Install dependencies:
pnpm install
- Copy
.env.exampleto.envand fill in the required secrets (includingDATABASE_URIfor the CMS database connection). If you have a Turborepo team, add yourTURBO_TEAMandTURBO_TOKENvalues to enable remote caching locally. Create matching secrets (TURBO_TEAM,TURBO_TOKEN) in the repository's GitHub Secrets so caching also works in CI. - Start PostgreSQL and Payload CMS. The Postgres image ships with
default tables and policies defined in
docker/postgres/01-init.sql:
docker compose up -d cms postgres
# or `docker-compose` if the Compose plugin isn't availableOnce the CMS is running you can seed initial data with:
pnpm cms:seed-
Run all apps in parallel:
pnpm turbo run dev --parallel
-
Open
http://localhost:3000in Chrome or any desktop browser to confirm the site loads.
Use Node.js 20+ and PNPM 9+ for best results.