Skip to content

Commit 56d486f

Browse files
Merge pull request #9 from LubomirGeorgiev/credit-based-billing-system
feat: Credit based billing system
2 parents accc0a7 + 8cdd908 commit 56d486f

36 files changed

+3540
-752
lines changed

.cursorrules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ In the terminal, you are also an expert at suggesting wrangler commands
2222
- Always use pnpm to install dependencies.
2323

2424
Code Style and Structure
25+
- Never use Drizzle ORM Transactions since Cloudflare D1 doesn't support them.
26+
- When inserting or updating items with Drizzle ORM never pass an id since we autogenerate it in the schema.
2527
- Write concise, technical TypeScript code with accurate examples.
2628
- Use functional and declarative programming patterns; avoid classes.
2729
- Prefer iteration and modularization over code duplication.

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ RESEND_API_KEY=
1616

1717
### If using Brevo
1818
BREVO_API_KEY=
19+
20+
### Stripe Configuration
21+
# Get your API keys from https://dashboard.stripe.com/apikeys
22+
STRIPE_SECRET_KEY=
23+
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ Have a look at the [project plan](./cursor-docs/project-plan.md) to get an overv
6666
- ✨ Beautiful Email Templates
6767
- 👤 Profile Settings Page
6868
- 🎯 Form Validation States
69+
- 💳 Credit Billing System
70+
- 💰 Credit-based Pricing Model
71+
- 🔄 Monthly Credit Refresh
72+
- 📊 Credit Usage Tracking
73+
- 💳 Stripe Payment Integration
74+
- 📜 Transaction History
75+
- 📦 Credit Package Management
76+
- 💸 Pay-as-you-go Model
77+
- 📈 Usage Analytics
6978
- ✨ Validations with Zod and React Hook Form
7079
- 🛡️ Type-safe Form Validations
7180
- 🔒 Server-side Validations

0 commit comments

Comments
 (0)