Add ecommerce starter template with Nanostores integration#163
Draft
Add ecommerce starter template with Nanostores integration#163
Conversation
Adds a new starter template at croct://starter/ecommerce-nanostores that scaffolds a React + Vite ecommerce site with personalized content using the croct-nanostores library (https://croct-nano.fryuni.dev). Includes: - Announcement bar, hero banner, and product recommendations via Croct slots - Cart state management with automatic Croct tracking (trackCart) - Auto-refresh plugin so content updates on user behavior changes - Three Croct CMS component schemas with default English content - Full React component set with minimal CSS styling https://claude.ai/code/session_01MWdQnUEgE12Y4pNCg2ZbwJ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new ecommerce starter template that demonstrates how to build a personalized shopping experience using React, Vite, and Croct Nanostores. The template includes personalized banners, product recommendations, and cart tracking capabilities.
What's included
AnnouncementBar— Personalized top-of-page bannerHeroBanner— Full-width hero section with CTAProductGrid— Personalized product recommendationsCart— Shopping cart with add/remove/quantity managementtemplate.json5that handles project setup, dependency installation, and Croct resource creationKey features
Checklist
https://claude.ai/code/session_01MWdQnUEgE12Y4pNCg2ZbwJ