E-commerce template built with Astro 5, React 19, and Tailwind CSS 4. Designed for speed, SEO, and specific aesthetic appeal, featuring a fully functional shopping cart, favorites system, blog, and more.
/ ├── public/ # Static assets ├── src/ │ ├── assets/ # Optimized images and assets │ ├── components/ # Reusable UI components │ │ ├── cart/ # Cart related components │ │ ├── checkout/ # Checkout flow components │ │ ├── home/ # Homepage sections │ │ ├── navbar/ # Navigation bar │ │ ├── products/ # Product displays │ │ └── ui/ # Generic UI elements (buttons, inputs) │ ├── data/ # Mock data (products, static content) │ ├── layouts/ # Astro layouts (Base, etc.) │ ├── pages/ # File-based routing │ │ ├── category/ # Dynamic category pages │ │ ├── product/ # Dynamic product details │ │ └── ... # Other static pages (About, Contact) │ ├── store/ # Global state (Cart, Favorites) │ └── styles/ # Global styles └── astro.config.mjs # Astro configuration
Clone the repository
git clone https://github.com/yourusername/E-commer-Astro.git
cd E-commer-Astro
Install dependencies
npm install
Start the development server
npm run dev
Build for production
npm run build
| Command | Action |
|---|---|
npm run dev | Starts local dev server at localhost:4321 |
npm run build | Build your production site to ./dist/ |
npm run preview | Preview your build locally, before deploying |