To get started with this boilerplate, follow these steps:
- Clone repository:
git clone https://github.com/TopHatCroat/nextjs-payloadcms-demo.git
- Install turbo and install packages:
yarn global add turbo
yarn install
- Start a local MongoDB database using Docker:
docker run -d -p 27017:27017 mongo
- Generate a
.env
file for the backend:
cp apps/backend/.env.template apps/backend/.env
- Generate seed data for the backend:
turbo seed
- Run the development servers for both the frontend and backend
turbo dev
- Access the UIs:
- Open http://localhost:3000 with your browser to see the admin UI
- Open http://localhost:3100 with your browser to see the UI
API documentation is provided by payload-openapi plugin.
The full documentation is available in apps/backend/openapi.yaml
.
If you changed or added new content types, you can regenerate the REST API documentation by running the following command:
turbo generate:rest-api
// TODO
Contributions are always welcome! To contribute, please follow these steps:
- Fork the repository.
- Create a new branch with a descriptive name.
- Make your changes, and commit
- Push your changes to the forked repository.
- Create a pull request, and we'll review your changes.
Thanks to next-enterprise for providing the base for the frontend. Thanks to Payload CMS for providing the backend headless CMS for this project.