4
0
forked from crowetic/commerce
Luis Alvarez D 541491f169
Replace tsc with SWC for package compilation and file watching (#675)
* Updated turbo version

* Added taskr to packages/local

* Move json files

* Include missing extension

* Fixed prettierignore

* Updated swc plugin

* Moved swc plugin to its own package

* Added note

* Removed unused package

* Added watch for file changes

* Added taskr deps to every package

* Added taskfile to every package

* Updated scripts in every package

* Added 2 utiity scripts

* Fix turbo dev script

* Update swc plugin to include jsx import

* Updated build script in main package.json
2022-02-09 10:30:59 -05:00
..
2022-02-01 14:14:05 -05:00
2022-02-01 14:14:05 -05:00
2022-02-01 14:14:05 -05:00
2022-02-01 14:14:05 -05:00
2022-02-01 14:14:05 -05:00
2022-02-01 14:14:05 -05:00

Spree Commerce Provider

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 (/packages/spree) to .env.local in the main directory

    cp packages/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 🎉