Coding
PromptBeginner5 minmarkdown
Nano Banana Pro
Agent skill for nano-banana-pro
7
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a RedwoodSDK application built on Cloudflare Workers with:
src/worker.tsx - Main application entry point, defines routes and middlewaresrc/client.tsx - Client-side initializationsrc/app/ - React components and pages
Document.tsx - Root document componentpages/ - Page components (Home, user auth pages)components/ui/ - Reusable UI componentslib/ - Authentication and utility functionssrc/db/ - Database schema and typessrc/session/ - Session management with Durable Objectsdrizzle-dev.config.ts & drizzle-prod.config.ts - Database configurations for different environmentsThe project uses separate configurations for development and production:
.wrangler/state/src/db/schema.ts and src/db/auth-schema.tspnpm dev # Start development server pnpm build # Build for production pnpm types # Type check the project pnpm check # Generate types and run type checking
Local Development:
npm run local:db:generate # Generate migrations for local dev npm run local:db:migrate # Apply migrations to local dev DB npm run local:db:push # Push schema changes to local dev DB npm run local:db:studio # Open Drizzle Studio for local dev DB
Production:
npm run db:generate # Generate migrations for production npm run db:migrate # Apply migrations to production DB npm run db:push # Push schema changes to production DB npm run db:studio # Open Drizzle Studio for production DB
Combined Operations:
npm run migrate:dev # Generate and migrate for development npm run migrate:new # Generate, migrate, and seed database npm run seed # Run seed script
npm run auth:db:migrate # Generate auth schema and migrate database
npm run release # Full deployment: clean, generate, build, and deploy to Cloudflare
"use client"; directive at top of filewrangler.jsonc for Cloudflare Worker configurationSessionDurableObject)DB