A modern ecommerce application built with SvelteKit 5, TypeScript, and Tailwind CSS. This app provides a complete shopping experience with product browsing, cart management, and checkout functionality.
- 🛍️ Product Catalog: Browse and search through products with pagination
- 🛒 Shopping Cart: Add products to cart with real-time cart updates
- 💳 Checkout System: Complete purchase flow with order management
- 🔍 Search & Filter: Find products quickly with search functionality
- 📱 Responsive Design: Modern UI that works on all devices
- ⚡ Fast & Modern: Built with SvelteKit 5 and TypeScript for optimal performance
- Framework: SvelteKit 5
- Language: TypeScript
- Styling: Tailwind CSS 4
- Build Tool: Vite
- Package Manager: pnpm
- Node.js (v18 or higher)
- pnpm (recommended) or npm
- Clone the repository:
git clone <repository-url>
cd ecommerce-app- Install dependencies:
pnpm install
# or
npm installStart the development server:
pnpm dev
# or
npm run dev
# or start the server and open the app in a new browser tab
pnpm dev --openThe app will be available at http://localhost:5173
To create a production version of your app:
pnpm build
# or
npm run buildYou can preview the production build with:
pnpm preview
# or
npm run previewsrc/
├── routes/
│ ├── +page.svelte # Home page
│ ├── +layout.svelte # App layout
│ ├── products/ # Product catalog pages
│ └── checkout/ # Checkout flow pages
├── lib/
│ ├── components/ # Reusable UI components
│ ├── api/ # API services
│ ├── utils/ # Utility functions
│ └── types/ # TypeScript type definitions
└── app.html # HTML template
pnpm dev- Start development serverpnpm build- Build for productionpnpm preview- Preview production buildpnpm check- Run Svelte type checkingpnpm check:watch- Run type checking in watch mode
To deploy your app, you may need to install an adapter for your target environment.
The app is configured with @sveltejs/adapter-auto which automatically selects the appropriate adapter for your deployment platform.