Installation
Here is a step-by-step guide for how to use this repo:
- Clone this repo using
git clone --depth=1 https://github.com/gustavohernandes11/payloadCMS-template.git <YOUR_PROJECT_NAME>
- Run
cp .env.example .env
to create an.env
file - Fill out your
.env
file with values that describe your environment - Run
yarn
ornpm install
- Run
yarn dev
to open a development environment - optional Run
yarn seed
to add sample pages and a Media upload - Go to http://localhost:3000/admin to create your first user
Building and serving in Production
This repo contains everything you need to both build your project for production purposes as well as serve it after it's been built.
- To build, run
yarn build
ornpm run build
. - To serve, run
yarn serve
ornpm run serve
.