---
title: "The Modern App Stack - Auth, Data and Payments"
description: "Wire up a production SaaS the way pros do"
type: "course"
locale: "en"
canonical: "https://agenticschool.dev/courses/modern-app-stack"
---

# The Modern App Stack - Auth, Data and Payments

- Level: fortgeschritten
- Lessons: 7
- Canonical URL: https://agenticschool.dev/courses/modern-app-stack
- Locale: en

> Wire up a production SaaS the way pros do

Assemble a real product. Learn how modern apps fit together, add Clerk authentication and Google OAuth, model reactive data in Convex, handle secrets safely, charge customers with Stripe, and migrate from dev to production.

## Lessons

### 3.1 Architecture 101: Frameworks, Monorepos and How Modern Apps Fit Together

- Canonical URL: https://agenticschool.dev/courses/modern-app-stack/architecture-101-frameworks-monorepos-and-how-modern-apps-fit-together
- Markdown: https://agenticschool.dev/courses/modern-app-stack/architecture-101-frameworks-monorepos-and-how-modern-apps-fit-together.md

Build a clear mental map of frontend, backend and database, the marketing-versus-app split, and when a monorepo earns its keep

### 3.2 Clerk: Authentication and OAuth from Dev to Production

- Canonical URL: https://agenticschool.dev/courses/modern-app-stack/clerk-authentication-and-oauth-from-dev-to-production
- Markdown: https://agenticschool.dev/courses/modern-app-stack/clerk-authentication-and-oauth-from-dev-to-production.md

Add real authentication with Clerk, wire up Google OAuth, and take it from a dev instance to a production instance on your own domain

### 3.3 Convex: Your Reactive Database

- Canonical URL: https://agenticschool.dev/courses/modern-app-stack/convex-your-reactive-database
- Markdown: https://agenticschool.dev/courses/modern-app-stack/convex-your-reactive-database.md

Model and query data in Convex with end-to-end type safety and live updates, and use indexes and soft deletes the way real products do

### 3.4 Secrets and Environment: .env, .gitignore, Deploy Keys and Encryption

- Canonical URL: https://agenticschool.dev/courses/modern-app-stack/secrets-and-environment-env-gitignore-deploy-keys-and-encryption
- Markdown: https://agenticschool.dev/courses/modern-app-stack/secrets-and-environment-env-gitignore-deploy-keys-and-encryption.md

Handle secrets safely across dev and prod: env files, gitignore, recovering from a leaked secret, deploy keys, and encrypting stored user keys

### 3.5 Stripe Part 1: Checkout, Subscriptions, Test vs Production

- Canonical URL: https://agenticschool.dev/courses/modern-app-stack/stripe-part-1-checkout-subscriptions-test-vs-production
- Markdown: https://agenticschool.dev/courses/modern-app-stack/stripe-part-1-checkout-subscriptions-test-vs-production.md

Take real payments with Stripe Checkout and subscriptions, model monthly and yearly prices, and work safely in test mode before going live

### 3.6 Stripe Part 2: Webhooks, Proration, Coupons and Embedded Checkout

- Canonical URL: https://agenticschool.dev/courses/modern-app-stack/stripe-part-2-webhooks-proration-coupons-and-embedded-checkout
- Markdown: https://agenticschool.dev/courses/modern-app-stack/stripe-part-2-webhooks-proration-coupons-and-embedded-checkout.md

Make billing reliable with verified webhooks and idempotency, handle proration on mid-cycle upgrades, run coupons, and ship embedded checkout

### 3.7 Going Live: Dev-to-Prod Migration, Search Console and Performance

- Canonical URL: https://agenticschool.dev/courses/modern-app-stack/going-live-dev-to-prod-migration-search-console-and-performance
- Markdown: https://agenticschool.dev/courses/modern-app-stack/going-live-dev-to-prod-migration-search-console-and-performance.md

Migrate Clerk and Convex from dev to prod cleanly, wire DNS and Cloudflare, get indexed via Search Console, and pass Lighthouse
