Commit graph

24 commits

Author SHA1 Message Date
DustyWalker
68ec648c2c Merge branch 'feature/auth-google-oauth' into feature/production-complete 2025-08-05 17:46:58 +02:00
DustyWalker
f3870f56c9 Merge branch 'feature/database-schema' into feature/production-complete 2025-08-05 17:46:53 +02:00
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
9366cfa94f feat: add .forgejo/workflows/ci.yml - comprehensive CI pipeline configuration
CI/CD pipeline with comprehensive automation:
- Multi-stage workflow with dependency caching
- Linting, formatting, and TypeScript type checking
- Unit tests with coverage reporting across all packages
- Integration tests with PostgreSQL, Redis, and MinIO services
- Docker build and container testing
- Security scanning with npm audit and Snyk
- Dependency update monitoring
- Deployment readiness validation
- Matrix testing strategy for monorepo packages
- Artifact management and retention policies

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 16:52:14 +02:00
DustyWalker
ff310d97df feat: add .gitignore - comprehensive ignore patterns for Node.js SaaS project
Comprehensive .gitignore covering:
- Node.js dependencies and runtime files
- Build outputs and distribution directories
- Environment variables and configuration secrets
- Application and system logs
- Database files and storage
- Cloud deployment and infrastructure files
- Development tools and OS-generated files
- Testing outputs and coverage reports
- Security certificates and private keys
- Application-specific uploads and cache
- Package manager artifacts
- CI/CD build artifacts and deployment secrets

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 16:51:14 +02:00
DustyWalker
ebf20ea7f9 feat: add .prettierrc - code formatting configuration
Prettier configuration with:
- Consistent formatting rules for TypeScript/JavaScript
- File-type specific overrides for JSON, Markdown, YAML, CSS
- 80-character line limit with 2-space indentation
- Single quotes and trailing commas for cleaner diffs
- JSX and HTML formatting optimizations
- Cross-platform line ending consistency (LF)
- Integration-ready with ESLint configuration

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 16:50:31 +02:00
DustyWalker
4cae1f981f feat: add .eslintrc.js - comprehensive ESLint configuration for TypeScript
ESLint configuration with:
- TypeScript-first rules with strict type checking
- Import/export organization and validation
- Node.js environment optimizations
- Monorepo-aware path resolution
- Security and performance rules
- Prettier integration for code formatting
- Environment-specific overrides (frontend, api, worker)
- Test file specific configurations
- Comprehensive rule set for code quality

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 16:50:09 +02:00
DustyWalker
29e63402b9 feat: add tsconfig.json - root TypeScript configuration for monorepo
TypeScript configuration with:
- Modern ES2022 target with strict type checking
- Monorepo-optimized project references
- Path mapping for clean imports across packages
- Comprehensive compiler options for production builds
- Support for incremental compilation
- ESM modules with bundler resolution
- Development and build optimizations
- Workspace-aware include/exclude patterns

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 16:49:30 +02:00
DustyWalker
a57d7824a3 feat: add .env.example - comprehensive environment configuration template
Environment variable template covering:
- Application and security configuration
- Database and Redis settings
- Object storage (MinIO/S3) configuration
- AI provider settings (OpenAI, Anthropic, etc.)
- Security and antivirus (ClamAV) settings
- Email and SMTP configuration
- Logging and monitoring setup
- Business logic and user limits
- External service integrations
- Development and testing options
- Feature flags and toggles

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 16:49:02 +02:00
DustyWalker
451243b1af feat: add Dockerfile - multi-stage Alpine build optimized for production
Multi-stage Dockerfile with:
- Alpine Linux base for minimal size (<300MB target)
- Separate stages for builder, production, worker, and development
- Security-focused with non-root user execution
- VIPS library integration for image processing
- pnpm package manager support
- Health checks and proper signal handling with tini
- Optimized layer caching and dependency installation
- Production and development configurations

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 16:48:20 +02:00
DustyWalker
e294e050ee feat: add docker-compose.yml - production environment configuration
Production-ready Docker Compose setup with:
- Multi-container application architecture (app + worker)
- PostgreSQL with proper resource limits and health checks
- Redis for caching and job queues
- MinIO object storage with production security
- ClamAV antivirus scanning
- Nginx reverse proxy with SSL support
- Resource limits and deployment constraints
- Environment variable integration
- Comprehensive health monitoring

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 16:47:52 +02:00
DustyWalker
f9fe71d286 feat: add docker-compose.dev.yml - development environment infrastructure
Provides comprehensive development stack with:
- PostgreSQL 16 with health checks and initialization scripts
- Redis 7 for caching and job queues
- MinIO for S3-compatible object storage with auto bucket creation
- ClamAV for antivirus scanning capabilities
- MailHog for email testing
- Proper networking, volumes, and health checks
- Development-optimized configurations

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 16:47:14 +02:00
DustyWalker
7f719bcaec feat: add package.json - root monorepo configuration with pnpm workspaces
Establishes TypeScript monorepo structure with:
- pnpm workspaces for api, worker, and frontend packages
- Comprehensive scripts for development, testing, and deployment
- Docker integration commands
- ESLint, Prettier, and Husky configuration
- Production-ready dependencies and tooling

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 16:46:45 +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