Git Product home page Git Product logo

wix-demo-nextjs-template's Introduction

A Wix Headless Pastry Template

Template showcase

This template is a Next.js project bootstrapped with create-next-app. It uses Wix Headless to leverage the Wix Events, Wix Stores, Wix Bookings and CMS business solutions for managing a business.

Local Development

Prerequisites:

  1. Create a Wix Headless project
  2. Add the Stores, Bookings, Pricing Plans and Events apps to your project
  3. Authorize the template with quick start deployment or by creating an OAuth app
  4. Set up your project's eCommerce settings

Set up environment variables to consume Wix Headless APIs:

  1. In the 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
    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.

wix-demo-nextjs-template's People

Contributors

github-tools-service avatar liormar avatar ronnyrin avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wix-demo-nextjs-template's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.