payloadcms / custom-website-series

A fully custom website built with Payload and Next.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Payload Custom Website Series

In this series, we'll show you how to build a professionally designed, custom website from scratch.

Installation

Here is a step-by-step guide for how to use this repo:

  1. Clone this repo using git clone --depth=1 https://github.com/payloadcms/nextjs-custom-server.git <YOUR_PROJECT_NAME>
  2. Run cp .env.example .env to create an .env file
  3. Fill out your .env file with values that describe your environment
  4. Run yarn or npm install
  5. Run yarn dev to open a development environment
  6. optional Run yarn seed to add sample pages and a Media upload
  7. 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 or npm run build.
  • To serve, run yarn serve or npm run serve.

About

A fully custom website built with Payload and Next.js


Languages

Language:TypeScript 98.8%Language:JavaScript 1.0%Language:Shell 0.1%Language:SCSS 0.1%