Code Monkey home page Code Monkey logo

xcommercial-'s Introduction

Deploy with Vercel

Next.js Commerce

A Next.js 13 and App Router-ready ecommerce template featuring:

  • Next.js App Router
  • Optimized for SEO using Next.js's Metadata
  • React Server Components (RSCs) and Suspense
  • Server Actions for mutations
  • Edge Runtime
  • New fetching and caching paradigms
  • Dynamic OG images
  • Styling with Tailwind CSS
  • Checkout and payments with Shopify
  • Automatic light/dark mode based on system settings

Note: Looking for Next.js Commerce v1? View the code, demo, and release notes.

Providers

Vercel will only be actively maintaining a Shopify version as outlined in our vision and strategy for Next.js Commerce.

Vercel is happy to partner and work with any commerce provider to help them get a similar template up and running and listed below. Alternative providers should be able to fork this repository and swap out the lib/shopify file with their own implementation while leaving the rest of the template mostly unchanged.

Note: Providers, if you are looking to use similar products for your demo, you can download these assets.

Running locally

You will need to use the environment variables defined in .env.example to run Next.js Commerce. It's recommended you use Vercel Environment Variables for this, but a .env file is all that is necessary.

Note: You should not commit your .env file or it will expose secrets that will allow others to control your Shopify store.

  1. Install Vercel CLI: npm i -g vercel
  2. Link local instance with Vercel and GitHub accounts (creates .vercel directory): vercel link
  3. Download your environment variables: vercel env pull
pnpm install
pnpm dev

Your app should now be running on localhost:3000.

Expand if you work at Vercel and want to run locally and / or contribute
  1. Run vc link.
  2. Select the Vercel Solutions scope.
  3. Connect to the existing commerce-shopify project.
  4. Run vc env pull to get environment variables.
  5. Run pmpm dev to ensure everything is working correctly.

Vercel, Next.js Commerce, and Shopify Integration Guide

You can use this comprehensive integration guide with step-by-step instructions on how to configure Shopify as a headless CMS using Next.js Commerce as your headless Shopify storefront on Vercel.

xcommercial-'s People

Contributors

renovate[bot] avatar renovate-bot avatar x-oss-byte avatar

Watchers

 avatar

Forkers

renovate-bot

xcommercial-'s Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency @headlessui/react to v1.7.19
  • Update dependency @tailwindcss/typography to v0.5.13
  • Update dependency autoprefixer to v10.4.19
  • Update dependency eslint-plugin-unicorn to v48.0.1
  • Update dependency @heroicons/react to v2.1.3
  • Update dependency clsx to v2.1.1
  • Update dependency eslint to v8.57.0
  • Update dependency eslint-config-prettier to v8.10.0
  • Update dependency lint-staged to v13.3.0
  • Update dependency tailwindcss to v3.4.3
  • Update dependency @headlessui/react to v2
  • Update dependency eslint to v9
  • Update dependency eslint-plugin-unicorn to v53
  • Update pnpm to v9
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @headlessui/react ^1.7.15
  • @heroicons/react ^2.0.18
  • clsx ^2.0.0
  • next 13.4.13-canary.15
  • react 18.2.0
  • react-dom 18.2.0
  • @tailwindcss/container-queries ^0.1.1
  • @tailwindcss/typography ^0.5.9
  • @types/node 20.4.4
  • @types/react 18.2.23
  • @types/react-dom 18.2.8
  • @vercel/git-hooks ^1.0.0
  • autoprefixer ^10.4.14
  • eslint ^8.45.0
  • eslint-config-next ^13.4.12
  • eslint-config-prettier ^8.8.0
  • eslint-plugin-unicorn ^48.0.0
  • lint-staged ^13.2.3
  • postcss ^8.4.27
  • prettier 3.0.3
  • prettier-plugin-tailwindcss ^0.4.1
  • tailwindcss ^3.3.3
  • typescript 5.1.6
  • node >=18
  • pnpm >=7
  • pnpm 8.2.0
nvm
.nvmrc
  • node 18

  • Check this box to trigger a request for Renovate to run again on this repository

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.