https://github.com/payloadcms/custom-website-series
A fully custom website built with Payload and Next.js
https://github.com/payloadcms/custom-website-series
Last synced: 2 months ago
JSON representation
A fully custom website built with Payload and Next.js
- Host: GitHub
- URL: https://github.com/payloadcms/custom-website-series
- Owner: payloadcms
- Created: 2021-03-20T18:13:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-02T23:44:34.000Z (almost 3 years ago)
- Last Synced: 2024-04-14T11:58:13.426Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 1.04 MB
- Stars: 65
- Watchers: 8
- Forks: 36
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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 `
1. Run `cp .env.example .env` to create an `.env` file
1. Fill out your `.env` file with values that describe your environment
1. Run `yarn` or `npm install`
1. Run `yarn dev` to open a development environment
1. *optional* Run `yarn seed` to add sample pages and a Media upload
1. Go to [http://localhost:3000/admin](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`.