mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 22:42:33 +00:00
* Update product types * Cart types progress, add zod & initial schema validator * Update normalize.ts * Update with-schema-parser.ts * Updated types, schemas & providers * Fix providers after schema parse errors * Fix paths * More provider fixes * Fix kibocommerce & commercejs * Add customer updated types & fixes * Add checkout & customer types * Import core types only from commerce * Update tsconfig.json * Convert hooks interfaces to types * Requested changes * Change to relative paths * Move Zod dependency
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.template
file in this directory (/packages/spree
) to.env.local
in the main directorycp packages/spree/.env.template .env.local
-
Set
NEXT_PUBLIC_SPREE_CATEGORIES_TAXONOMY_PERMALINK
andNEXT_PUBLIC_SPREE_BRANDS_TAXONOMY_PERMALINK
environment variables:- They rely on taxonomies' permalinks in Spree.
- Go to the Spree admin panel and create
Categories
andBrands
taxonomies if they don't exist and copy their permalinks into.env.local
in NextJS Commerce.
-
Finally, run
npm run dev
🎉