🔥FLASH SALE: 30% OFF everything!
LogoTemplateFame
icon of SwiftMarket

SwiftMarket

SwiftMarket is an e-commerce solution built with SvelteKit, Pocketbase as a database, and Stripe for payments. It offers better performance and faster...

Introduction

SwiftMarket offers a modern and efficient e-commerce platform, leveraging the power of SvelteKit for a highly performant frontend. It integrates Pocketbase as a lightweight, self-hosted backend, providing a real-time database and authentication system. For secure and seamless transactions, Stripe is incorporated as the payment gateway.

Key Features:

  • SvelteKit Frontend: Built with SvelteKit, known for its reactivity and small bundle sizes, ensuring a fast and smooth user experience.
  • Pocketbase Backend: Utilizes Pocketbase for a robust and easy-to-manage backend, offering a database, authentication, and file storage out of the box. This simplifies backend development and deployment.
  • Stripe Payments: Securely handles all payment processing through Stripe, supporting various payment methods and ensuring PCI compliance.
  • Rapid Development: The combination of SvelteKit and Pocketbase allows for quicker iteration and development cycles, making it ideal for startups and projects requiring a fast time-to-market.
  • Performance-Oriented: Designed with performance in mind, from the efficient frontend framework to the optimized backend data handling.

Use Cases: SwiftMarket is suitable for developers and businesses looking to quickly launch an online store with a modern tech stack. It's particularly beneficial for:

  • Small to medium-sized e-commerce businesses.
  • Developers who prefer Svelte/SvelteKit and want a straightforward backend solution.
  • Projects where performance and development speed are critical.
  • Anyone needing a customizable e-commerce platform with integrated payment processing.

Getting Started:

  1. Clone the repository: git clone https://github.com/SwiftMarket/swiftmarket-sveltekit.git
  2. Navigate to the project directory: cd swiftmarket-sveltekit
  3. Install dependencies: pnpm install
  4. Configure environment variables: Copy .env.example to .env and update PUBLIC_STRIPE_KEY and SECRET_STRIPE_KEY from your Stripe dashboard.
  5. Set up Pocketbase:
    • Download the Pocketbase executable from pocketbase.io/docs/.
    • Serve Pocketbase: ./pocketbase serve
    • Access the Admin UI, create an admin account.
    • Download pb_schema.json from the SwiftMarket repository.
    • Import collections via Settings/Import collections in the Pocketbase Admin UI.
  6. Start development server: pnpm run dev

Building for Production: To create a production-ready version of the application, use pnpm run build. You can preview the build with pnpm run preview. For deployment, consider installing an appropriate SvelteKit adapter for your target environment.

Information

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates