Next.js Commerce is an all-in-one React starter kit for high-performance e-commerce sites.
See the live demo: https://spree.vercel.store/
-
Clone the git repository:
git clone https://github.com/spree/nextjs-commerce.git
-
Copy the
framework/spree/.env.template
file to.env.local
in the main directory:cp framework/spree/.env.template .env.local
-
Adjust the
NEXT_PUBLIC_SPREE_CATEGORIES_TAXONOMY_PERMALINK
andNEXT_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
andBrands
taxonomies if they don't exist. Copy their permalinks into.env.local
in NextJS Commerce.
- They rely on taxonomies
-
Finally, run
yarn install
andyarn run dev
.