Next.JS ButterCMS Starter Project

R
Renaudil y a 2 jours
0

Description

A fully-functional, drop-in proof-of-concept Next.js app, fully integrated with your ButterCMS account

npx boilerapp NextJS-starter-buttercms

文档

Next.js + ButterCMS Starter Project

recommended node version

Live Demo: https://nextjs-starter-buttercms.vercel.app/

Deploy with Vercel

Deploy

This Next.js starter project fully integrates with dynamic sample content from your ButterCMS account, including main menu, pages, blog posts, categories, and tags, all with a beautiful, custom theme with already-implemented search functionality. All of the included sample content is automatically created in your account dashboard when you sign up for a free trial of ButterCMS.

A copy of this starter project can be easily and quickly deployed to Vercel or Heroku with the click of a button.

1) Installation

First, install the dependencies by cloning the repo and running one of the following commands, depending on your current setup:

git clone https://github.com/ButterCMS/nextjs-starter-buttercms.git
cd nextjs-starter-buttercms
npm install # or yarn install

2) Set API Token

To fetch your ButterCMS content, add your API token as an environment variable.

$ echo 'NEXT_PUBLIC_BUTTER_CMS_API_KEY=<Your API Token>' >> .env

3) Run the local server

To view the app in a browser, you'll need to run the local development server:

npm run dev # or yarn dev

Congratulations! Your starter project is now live: http://localhost:3000.

4) Deploy

Deploy your Butterized proof of concept app and spread your love of Butter, to either Vercel, the creators of Next.js, or to Heroku. With the click of a button, you'll create a copy of our starter project in your Git provider account, instantly deploy it, and institute a full content workflow connected to your ButterCMS account. Smooth.

Deploy with Vercel

Deploy

5) Previewing

Your starter project is automatically configured to show draft changes saved in your Butter account when run locally or deployed to a hosting provider. To disable this behavior, set the following value in your .env file: PREVIEW=false.

Prix

Gratuit

FREE

评论 (0)

常见问题

常见问题解答 (FAQ)

有问题?我们有答案。如果您找不到想要的答案,请随时联络我们。

Boilerapp 是一个专门用于分享 Boilerplates、入门套件(Starter Kits)和项目模版的开发者社区平台。我们的目标很简单:为您节省初始配置(Setup)的时间,让您可以专注于真正重要的代码。无论您是在寻找简单的代码库还是完整的 SaaS 项目,都能在这里找到。

还有其他问题?

我们的团队随时为您提供帮助。联络我们,我们将尽快回复。