Wix CMS: Next.js CMS starter

R
Renaudil y a 2 jours
0

Description

Next.js template with create-next-app, using Wix Headless for managing content via Wix CMS

npx boilerapp wix-cms

文档

A Wix CMS Next.js Education Template

Template showcase

This template is a Next.js project bootstrapped with create-next-app. It uses Wix Headless to leverage the Wix CMS business solution for managing the content on an education site.

Local Development

Prerequisites:

  1. Create a Wix Headless project
  2. Add the Content Manager app to your project
  3. Authorize the template with quick start deployment or by creating an OAuth app

Set up environment variables to consume Wix Headless APIs:

  1. In the template's root folder, create a file for the local environment variables:
    cp .env.template .env.local.
    
  2. In the new .env.local file, paste the OAuth app client ID after NEXT_PUBLIC_WIX_CLIENT_ID=.

Run the development server:

  1. Run either:

    yarn dev
    

    or

    npm i
    npm run dev
    
  2. Open http://localhost:3000 in your browser to see the template home page.

Edit the template:

  • Start editing the homepage by modifying app/page.tsx. The page auto-updates as you edit the file.
  • Edit any other page using the pattern app/page.tsx. For more information, see Defining Routes in the Next.js documentation.

Deployment

You can deploy this repository using any platform which supports Next.js Version 13 and App Router.

The repository requires a single environment variable: NEXT_PUBLIC_WIX_CLIENT_ID, which should contain a client ID authorizing access to a Wix project's data.

Learn More

To learn how to customize the template and add more functionality using Wix APIs, see the Wix JavaScript SDK reference.

This template is written in Next.js 13 using the Next.js App Router.

To learn more about Next.js, see:

Additionally, this template uses the following libraries and features:

Next.js and Wix Integration Guide

See the comprehensive integration guide for step-by-step instructions on how to configure Wix as your headless Booking solution using Next.js on Vercel.

Prix

Gratuit

FREE

评论 (0)

常见问题

常见问题解答 (FAQ)

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

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

还有其他问题?

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

Wix CMS: Next.js CMS starter | BoilerApp