Wix Events and eCommerce Next.js starter

R
Renaudil y a 2 jours
0

Description

Next.js template, bootstrapped with create-next-app, using Wix Headless for event ticketing and a store via Wix Events and Stores

npx boilerapp wix-commerce-ticketing

Documentación

A Wix Events and Wix eCommerce Next.js Music Tour Template

Template showcase

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

Local Development

Prerequisites:

  1. Create a Wix Headless project
  2. Add the Stores 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 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

Comentarios (0)

FAQ

Preguntas Frecuentes

¿Tienes una pregunta? Tenemos las respuestas. Si no encuentras lo que buscas, no dudes en contactarnos.

Boilerapp es una plataforma comunitaria dedicada a compartir boilerplates, starter kits y plantillas de proyectos para desarrolladores. Nuestro objetivo es simple: hacerte ahorrar tiempo en la configuración inicial (setup) para que puedas programar lo que realmente importa. Ya busques una base de código simple o un proyecto SaaS completo, lo encontrarás aquí.

¿Tienes otras preguntas?

Nuestro equipo está aquí para ayudarte. Contáctanos y te responderemos lo antes posible.