Svelte-SvelteKit__Ecommerce Svelte Themes

Svelte Sveltekit__ecommerce

SvelteKit E-Commerce Site: Sediment Art

This is a real world e-commerce site which uses Stripe for payments and Cloudinary for image hosting. It is built with SvelteKit and TypeScript, and is currently in production!

  • âš™ī¸ SvelteKit: Full stack JS framework that handles our server and client side code
  • đŸ’Ļ Drizzle: Lightweight high power ORM for interfacing with our DB
  • đŸŒŠī¸ Cloudinary: Image hosting and manipulation
  • đŸ’ŗ Stripe: Payment processing
  • đŸ’Ŋ PlanetScale: Cloud hosted MySQL database (with data branching)
  • 🚀 Vercel: Serverless hosting
  • 🎨 ShadCN for Svelte: Beautifully designed components
  • đŸ–Œī¸ TailwindCSS: Inline styles
  • 🔒 Lucia V3: Authentication library and OAuth helpers
  • đŸ“Ļ Pnpm: Package manager

Getting Started

Stripe

  1. Create a Stripe account: https://dashboard.stripe.com/register
  2. Get your (TEST) public and secret keys, and add them to the .env: PUBLIC_STRIPE_PUBLIC_KEY="pk_test_..." STRIPE_SECRET_KEY="sk_test_..."
  3. Create your products in stripe, then add them to the seed.ts file where it is marked "TODO STRIPE:" (it is also a good idea to change the products, prices, and images in the seed.ts file to match your own products)
  4. Install the stripe CLI and get webhook signing secret: https://stripe.com/docs/stripe-cli, then add it your your .env: STRIPE_WEBHOOK_SECRET="whsec_..."

Run the project

  1. Install the dependencies with pnpm i
  2. Run the project with pnpm run dev

Top categories

Loading Svelte Themes