Next.js Commerce
​Next.js Commerce is an all-in-one React starter kit for high-performance e-commerce sites.
See the live demo: https://spree.vercel.app/​

Installation

  1. 1.
    Clone the git repository:
    1
    git clone [email protected]:spree/nextjs-commerce.git
    Copied!
  2. 2.
    Copy the framework/spree/env.template file to .env.local in the main directory:
    1
    cp framework/spree/.env.template .env.local
    Copied!
  3. 3.
    Adjust the NEXT_PUBLIC_SPREE_CATEGORIES_TAXONOMY_PERMALINK and NEXT_PUBLIC_SPREE_BRANDS_TAXONOMY_PERMALINK environment variables inside .env.local:
    • They rely on taxonomies' permalink values set in Spree.
    • Go to the Spree admin panel and create Categories and Brands taxonomies if they don't exist. Copy their permalinks into .env.local in NextJS Commerce.
  4. 4.
    Finally, run yarn dev .
Last modified 2mo ago
Copy link
Edit on GitHub
Contents
Installation