Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Astro Ecommerce is a starter template for building e-commerce websites with Astro, featuring 70+ coded elements, 3 example pages, and 30+ blocks.
Astro Ecommerce is an e-commerce starter template for the Astro framework, published by Creative Tim, that bundles 70+ coded UI elements, 30+ blocks, and three fully coded example pages to accelerate storefront development.
Astro Ecommerce is a ready-to-use project scaffold for building online stores, built on Astro's island architecture and maintained by Creative Tim. It takes a basic Astro project (with a src/pages directory and Layout.astro) and adds e-commerce-specific components such as cart, checkout, incentives, order, products, promo, and reviews, plus a navbar and footer. The template's output is a static or server-rendered website depending on your Astro configuration, and it ships with landing, product, and shopping-cart pages that demonstrate common commerce flows.
src/components (cart, checkout, incentives, order, products, promo, reviews, store) that can be combined to assemble unique layouts.src/pages/index.astro, landing.astro, product.astro, shopping-cart.astro), and shared code lives in src/components with dedicated folders per feature.npm install and npm run dev, and start editing the Astro and SCSS files immediately.Astro Ecommerce follows Astro's standard workflow. After downloading the repository, run npm install to install dependencies, npm run dev to start a local dev server at localhost:3000, npm run build to produce a production build in ./dist/, and npm run preview to test that build locally. Customize components in src/components, add routes by creating files in src/pages, and place static assets in public/. The included tsconfig.json and package.json set up TypeScript and npm scripts for the project.
It includes 70+ coded UI elements, 30+ blocks, and three fully coded example pages (landing, product, shopping cart). The project also ships with a responsive layout, SCSS styling, and component folders for cart, checkout, incentives, order, products, promo, reviews, store, plus navbar and footer.
Clone the repository and run npm install to install dependencies, then npm run dev to start the development server at localhost:3000. Use npm run build to generate a production version in ./dist/ and npm run preview to view it.
The project has public/ for static assets, src/components/ for Astro/React/Vue/Svelte/Preact components, src/layouts/Layout.astro as the base layout, and src/pages/ for routes. Pages include index, landing, product, and shopping-cart.
The README links to Creative Tim's Astro documentation at creative-tim.com/learning-lab/astro/overview/astro-ecommerce and an official Discord server for questions.
