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.
- Framework: Next.js 14 with App Router
- Styling: Tailwind CSS v4
- UI Components: shadcn/ui
- Payments: Stripe
- TypeScript: Full type safety
- Deployment: Vercel (recommended)
Click the "Deploy" button to clone this repo, create a new Vercel project, setup the Stripe integration, and provision a new Stripe sandbox:
- Node.js 20+
- A Stripe account (Vercel integration recommended)
- Vercel account (optional, for deployment)
-
Install dependencies: ```bash pnpm install ```
-
Set up Stripe:
Use "Create Sandbox" or "Link Existing Account" for the Vercel Stripe integration.
- 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 keyNEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
- Your Stripe publishable key
- Call
vercel env pull
or update.env.local
file manually
-
Run the development server: ```bash pnpm dev ```
-
Open http://localhost:3000 in your browser
- Push to GitHub
- Connect to Vercel:
- Go to vercel.com
- Import your GitHub repository
- Add your Stripe environment variables
- Deploy!
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
This project is open source and available under the MIT License.
Built with ❤️ using v0 by Vercel