Simple Online Store with Stripe

R
Renaudil y a 2 jours
0

Description

A responsive online store built with Next.js and Stripe for selling a single product.

npx boilerapp simple-online-store-with-stripe

文档

Simple Online Store with Stripe

A responsive online store built with Next.js and Stripe for selling a single product. Features a clean design with product showcase, secure checkout, and payment processing.

Tech Stack

  • Framework: Next.js 14 with App Router
  • Styling: Tailwind CSS v4
  • UI Components: shadcn/ui
  • Payments: Stripe
  • TypeScript: Full type safety
  • Deployment: Vercel (recommended)

Getting Started

Click the "Deploy" button to clone this repo, create a new Vercel project, setup the Stripe integration, and provision a new Stripe sandbox:

Deploy with Vercel

Prerequisites

  • Node.js 20+
  • A Stripe account (Vercel integration recommended)
  • Vercel account (optional, for deployment)

Installation

  1. Install dependencies:

    pnpm install
    
  2. Set up Stripe:

Option 1: Use Vercel Stripe integration

Use "Create Sandbox" or "Link Existing Account" for the Vercel Stripe integration.

Option 2: Setup Stripe manually

  • Create a Stripe account at stripe.com
  • Get your API keys from the Stripe Dashboard
  • Add the following environment variables to your Vercel project:
    • STRIPE_SECRET_KEY - Your Stripe secret key
    • NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY - Your Stripe publishable key
  • Call vercel env pull or update .env.local file manually
  1. Run the development server:

    pnpm dev
    
  2. Open http://localhost:3000 in your browser

Deployment

Deploy to Vercel

  1. Push to GitHub
  2. Connect to Vercel:
    • Go to vercel.com
    • Import your GitHub repository
    • Add your Stripe environment variables
    • Deploy!

Environment Variables

Make sure to add these environment variables in your Vercel project settings either using Vercel Stripe integration or manually:

  • STRIPE_SECRET_KEY
  • NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY

License

This project is open source and available under the MIT License.


Built with ❤️ using v0 by Vercel

Prix

Gratuit

FREE

评论 (0)

常见问题

常见问题解答 (FAQ)

有问题?我们有答案。如果您找不到想要的答案,请随时联系我们。

Boilerapp 是一个专门用于分享 Boilerplates、入门套件(Starter Kits)和项目模版的开发者社区平台。我们的目标很简单:为您节省初始配置(Setup)的时间,让您可以专注于真正重要的代码。无论您是在寻找简单的代码库还是完整的 SaaS 项目,都能在这里找到。

还有其他问题?

我们的团队随时为您提供帮助。联系我们,我们将尽快回复。