In this series, we'll show you how to build a professionally designed, custom website from scratch.
Here is a step-by-step guide for how to use this repo:
- Clone this repo using
git clone --depth=1 https://github.com/payloadcms/nextjs-custom-server.git <YOUR_PROJECT_NAME> - Run
cp .env.example .envto create an.envfile - Fill out your
.envfile with values that describe your environment - Run
yarnornpm install - Run
yarn devto open a development environment - optional Run
yarn seedto add sample pages and a Media upload - Go to http://localhost:3000/admin to create your first user
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 buildornpm run build. - To serve, run
yarn serveornpm run serve.