Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Latest commit

 

History

History

Screenshots of Spree Commerce and NextJS Commerce

An integration of Spree Commerce within NextJS Commerce. It supports browsing and searching Spree products and adding products to the cart.

Demo: https://spree.vercel.store/

Installation

  1. Setup Spree - follow the Getting Started guide.

  2. Setup Nextjs Commerce - instructions for setting up NextJS Commerce.

  3. Copy the .env.template file in this directory (/framework/spree) to .env.local in the main directory

    cp framework/spree/.env.template .env.local
  4. Set NEXT_PUBLIC_SPREE_CATEGORIES_TAXONOMY_PERMALINK and NEXT_PUBLIC_SPREE_BRANDS_TAXONOMY_PERMALINK environment variables:

    • They rely on taxonomies' permalinks in Spree.
    • Go to the Spree admin panel and create Categories and Brands taxonomies if they don't exist and copy their permalinks into .env.local in NextJS Commerce.
  5. Finally, run npm run dev 🎉