A universal shopping cart built with SvelteKit, JavaScript, and TailwindCSS.
This project demonstrates how to use Svelte stores effectively and leverage localStorage to persist cart items across sessions — all while keeping the codebase simple, fast, and responsive.
- SvelteKit – modern framework for building fast web apps
- JavaScript – for cart logic and reactivity
- TailwindCSS – for responsive and elegant UI styling
- Netlify – for seamless deployment and hosting
- Persistent cart using localStorage
- Reactive global state via Svelte writable stores
- Clean and modular component structure
- Fully responsive design
- Fast build and deployment setup with Netlify
Clone the repository and install dependencies:
git clone https://github.com/000bachir/Sveltekit-Cart.git
cd sveltekit-universal-cart
npm install
npm run dev