Commit graph

1011 commits

Author SHA1 Message Date
Tiago Yamamoto
aab2de7534 fix(seeder): add SSL support and fix foreign key violations
- Add SSL configuration to database pool supporting DB_SSLMODE=require
- Fix user seeder FK violations by using RETURNING clause to get actual IDs
- Update all user creation queries (superadmin, company admins, candidates)
- Ensure correct user_id references when ON CONFLICT DO UPDATE occurs

This fixes the seeder hanging issue and foreign key constraint violations
that were preventing successful database population.
2025-12-11 19:36:37 -03:00
Tiago Yamamoto
18ac6d74f0 chore: update port configuration to avoid conflicts
Port Configuration:
- Backend: 8521 (was 8080/8158)
- Frontend: 8963 (was 3000)

Files updated:
- backend/.env.example: updated PORT and CORS_ORIGINS
- frontend/src/lib/auth.ts: API_URL default to 8521
- frontend/src/lib/api.ts: API_URL default to 8521
- frontend/src/lib/storage.ts: API_URL default to 8521
- run_dev.sh: added port flags and service info display

Usage:
  ./run_dev.sh
  # Backend:  http://localhost:8521
  # Frontend: http://localhost:8963
2025-12-11 17:06:37 -03:00
Tiago Yamamoto
9291b06db5 Merge branch 'hml' into dev 2025-12-11 15:16:09 -03:00
Tiago Yamamoto
add347985a feat: add HTML email signature templates with dynamic fields
- Create assinatura-template.html with placeholders
- Create assinatura-exemplo.html with sample data
- Support: name, position, phone, address, email, instagram
2025-12-11 15:13:52 -03:00
Tiago Yamamoto
fdd67b8cd6 Merge branch 'hml' into dev 2025-12-11 14:59:40 -03:00
Tiago Yamamoto
9630730d69 feat(frontend): add storage service for S3 file uploads
- Create storage.ts with pre-signed URL handling
- Implement getUploadUrl, uploadFileToS3 helper functions
- Add complete uploadFile workflow for easy file uploads
- Support logos, resumes, documents, avatars folders
2025-12-11 14:58:21 -03:00
Tiago Yamamoto
ce6e35aefd feat(backend): implement S3 object storage with pre-signed URLs
- Add s3_storage.go service using AWS SDK v2
- Support custom S3-compatible endpoints (Civo)
- Implement pre-signed URL generation for uploads/downloads
- Add storage_handler.go with REST endpoints
- Register protected storage routes in router
- Graceful degradation when S3 not configured
2025-12-11 14:41:25 -03:00
Tiago Yamamoto
c6e0a70d50 feat(backend): add PostgreSQL SSL support and DB_SSLMODE env var
- Update database.go to use DB_SSLMODE environment variable
- Default to sslmode=require for production security
- Update .env.example with SSL and S3 configuration examples
2025-12-11 14:41:11 -03:00
Tiago Yamamoto
a505726786 fix: refactor dashboard urls, fix layout duplication and resolve backend api errors 2025-12-09 20:29:49 -03:00
Tiago Yamamoto
7934afcf0d docs: complete project documentation overhaul
- Add comprehensive root README with badges, architecture diagram, and setup guide
- Update backend README with security middlewares and endpoint documentation
- Update frontend README with design system and page structure
- Update seeder-api README with generated data and credentials
- Add internal module READMEs (middleware, handlers, components)
- Document Clean Architecture layers and request flow
- Add environment variables reference table
2025-12-09 19:36:36 -03:00
Tiago Yamamoto
1c7ef95c1a first commit 2025-12-09 19:04:48 -03:00