Skip to content

Implement Vite and React for E-Commerce SPA Template#65

Merged
Josephat-S merged 1 commit into
devfrom
feat/vite-and-react-spa
May 26, 2026
Merged

Implement Vite and React for E-Commerce SPA Template#65
Josephat-S merged 1 commit into
devfrom
feat/vite-and-react-spa

Conversation

@Josephat-S
Copy link
Copy Markdown
Contributor

This pull request adds a new Vite + React SPA template for the ecommerce project type, updates architecture availability for templates, and introduces a new account page for the Next.js ecommerce template. The changes include configuration updates, new files and components for the Vite + React template, and improvements to testing scripts to reflect the expanded architecture support.

Ecommerce Vite + React Template Addition:

  • Added a new vite-react template for ecommerce, including core files such as index.html, package.json, postcss.config.js, tailwind-based index.css, and React entry points (App.tsx, main.tsx). This template provides a SPA implementation with navigation, theming, and example pages, and includes a note about SEO limitations for SPAs. [1] [2] [3] [4] [5] [6] [7] [8]

Architecture Availability Updates:

  • Updated the architecture availability map in index.js to allow the vite-react architecture for both portfolio and ecommerce templates (previously only available for saas).
  • Updated ARCHITECTURES definitions in scripts/test-single-template.js and scripts/test-templates.js to reflect that both portfolio and ecommerce templates now support both nextjs-monolith and vite-react architectures. [1] [2]

Next.js Ecommerce Account Page:

  • Added a new AccountPage component for the Next.js ecommerce template, featuring profile info, order history, saved addresses, and account settings UI.

These changes collectively expand the range of frontend architectures available for ecommerce and portfolio templates, improve test coverage for these combinations, and enhance the user experience for ecommerce account management.

Closes #38

@Josephat-S Josephat-S requested a review from a team May 26, 2026 08:38
@Josephat-S Josephat-S merged commit 2bf47fd into dev May 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vite + React SPA for E-Commerce Template

1 participant