Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Next.js Shopify e-commerce template #293

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emwp
Copy link
Contributor

@emwp emwp commented Jan 14, 2025

Add Next.js Shopify E-commerce Template

Description

This PR adds a new nextjs/shopify-ecommerce template that demonstrates building a production-ready e-commerce application using Next.js 14+ and Shopify's Storefront API. The template follows the same deployment patterns as our basic Next.js starter (referenced in starters/nextjs/basic) while adding e-commerce specific features and Shopify integration.

Key Features

  • App Router implementation with React Server Components
  • Dynamic product catalog with ISR for optimal performance
  • Shopping cart using Shopify's Cart API
  • Customer authentication via Shopify Customer Accounts
  • Checkout process using Shopify Checkout (Hosted checkout page using Stripe under the hood)
  • Shopify inventory management
  • Responsive design with Tailwind CSS
  • TypeScript implementation

Firebase Services Utilized

  • App Hosting for deployment
  • Firebase Data Connect for customer reviews

Technical Implementation

The template maintains compatibility with Firebase App Hosting's configuration-free deployment process and follows the same structure as our basic Next.js starter:

  • Implements SSR/ISR/SSG patterns demonstrated in the basic starter
  • Follows the established project structure and coding standards

Testing

  • ✅ Verified e-commerce flows locally
  • ✅ Tested deployment to Firebase App Hosting
  • ✅ Validated Shopify integration
  • ✅ Tested with the two latest LTS Node.js versions (20, 22)

Documentation

Added documentation covering:

  • Template setup and configuration
  • Shopify integration steps
  • Environment variables
  • Deployment process
  • Local development workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant