Commit graph

12 commits

Author SHA1 Message Date
DustyWalker
9514a2d0a3 feat(auth): implement complete Google OAuth authentication system
- Add authentication module with Google OAuth 2.0 and JWT strategies
- Create secure user management with email hashing (SHA-256)
- Implement rate limiting (10 requests/minute) for auth endpoints
- Add CSRF protection and security middleware
- Create user registration with Basic plan (50 quota default)
- Add JWT-based session management with secure cookies
- Implement protected routes with authentication guards
- Add comprehensive API documentation with Swagger
- Configure environment variables for OAuth and security
- Add user profile management and quota tracking

Resolves authentication requirements §18-20:
- §18: Google OAuth 2.0 with email scope only
- §19: Auto-create User record on first OAuth callback
- §20: Store only Google UID, display name, and email hash

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 17:09:43 +02:00
DustyWalker
e7e09d5e2c feat(db): implement complete database schema and models
- Add Prisma schema with PostgreSQL 15 support
- Create Users, Batches, Images, Payments, ApiKeys tables
- Implement proper foreign key relationships and indexes
- Add enum types for status fields (Plan, BatchStatus, ImageStatus, PaymentStatus)
- Support for JSON fields (vision_tags, metadata)
- UUID primary keys for security
- Created/updated timestamps with proper defaults

Database Layer Components:
- Prisma service with connection management and health checks
- Repository pattern for all entities with comprehensive CRUD operations
- TypeScript DTOs with class-validator decorations
- Swagger API documentation annotations
- Helper functions for business logic (quota management, pricing, etc.)

Development Support:
- Environment variables template
- Database seed script with realistic test data
- TypeScript configuration optimized for Nest.js
- Package.json with all required dependencies

Resolves database requirements from issues §78-81 establishing
the complete data layer foundation for the AI Bulk Image Renamer SaaS.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 17:02:03 +02:00
DustyWalker
90016254a9 23 2025-08-04 21:09:31 +02:00
DustyWalker
8faf2c9dde new-plan 2025-08-04 21:04:50 +02:00
DustyWalker
04eb4fad08 plan 2025-08-04 21:01:11 +02:00
DustyWalker
5e419a7bff Merge branch 'main' of https://vibecodetogether.com/Vibecode-Together/SEO_iamge_renamer_starting_point 2025-08-04 20:50:44 +02:00
DustyWalker
84d0b8ecc1 213 2025-08-04 20:50:42 +02:00
Jeen Koster
e0d4d6d8d5 more info for MVP added 2025-08-04 20:49:51 +02:00
Jeen Koster
6b6df81b1e Added MVP information 2025-08-04 20:48:34 +02:00
Jeen Koster
44804ef9a7 hello 2025-08-04 20:39:26 +02:00
DustyWalker
fc11062e84 1 2025-08-04 17:22:48 +02:00
DustyWalker
d07fe78014 first commit 2025-08-04 16:04:06 +02:00