Spree Commerce Provider
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
-
Setup Spree - follow the Getting Started guide.
-
Setup Nextjs Commerce - instructions for setting up NextJS Commerce.
-
Copy the
.env.templatefile in this directory (/packages/spree) to.env.localin the main directorycp packages/spree/.env.template .env.local -
Set
NEXT_PUBLIC_SPREE_CATEGORIES_TAXONOMY_PERMALINKandNEXT_PUBLIC_SPREE_BRANDS_TAXONOMY_PERMALINKenvironment variables:- They rely on taxonomies' permalinks in Spree.
- Go to the Spree admin panel and create
CategoriesandBrandstaxonomies if they don't exist and copy their permalinks into.env.localin NextJS Commerce.
-
Finally, run
npm run dev🎉
