This contains everything you need to run your app locally.
View your app in AI Studio: https://ai.studio/apps/drive/1vGG_TWGEbSuWPs_n4hAplSmDzU4B98gA
Prerequisites: Node.js
- Install dependencies:
npm install - Set the
GEMINI_API_KEYin .env.local to your Gemini API key - Run the app:
npm run dev
- Configure your Stripe publishable key by creating a
.env.localfile and settingVITE_STRIPE_PUBLISHABLE_KEY=pk_live_or_test_key. - Start the dev server (
npm run dev) and open http://localhost:3000/payment.html with one of the following query string options:- Provide a
client_secretreturned from your backend:/payment.html?client_secret=pi_123_secret_abc. - Provide a
payment_intentID so the page can fetch it from your backend (GET /payments/payment-intent/:id). - Provide an
amount(in the smallest currency unit, e.g., cents) to create a new intent viaPOST /payments/payment-intent.
- Provide a
- Optional query params:
currency,email,description,publishable_key,plan_id. - During production builds the payment page is bundled alongside the intake form; deploy both
index.htmlandpayment.html.
