Tiago Yamamoto
4577310c75
feat(frontend): use runtime env vars for config endpoint
...
Changed /api/config to read API_URL (without NEXT_PUBLIC_ prefix)
which allows runtime configuration without rebuilding the image.
Priority order:
1. API_URL (runtime env var)
2. NEXT_PUBLIC_API_URL (build-time fallback)
3. Default localhost values
2025-12-31 09:39:02 -03:00
Tiago Yamamoto
0da936550b
feat(frontend): add runtime config for environment variables
...
- Add /api/config endpoint for runtime env var fetching
- Add config.ts service with sync getters (getApiUrl, getBackofficeUrl, etc.)
- Add ConfigContext for React components
- Update api.ts, auth.ts, storage.ts to use runtime config
- Update layout.tsx to wrap app with ConfigProvider
- Fix Dockerfile default port from 8080 to 8521
This allows the frontend to read environment variables at runtime
instead of baking them in during build time.
2025-12-31 08:48:32 -03:00
Tiago Yamamoto
2e8a12682c
docs: update backend documentation with current date
2025-12-29 10:41:03 -03:00
Tiago Yamamoto
a62464457d
fix: ignore prune errors when images are in use
2025-12-29 10:38:53 -03:00
Tiago Yamamoto
8ba5e9e8e0
chore: simplify deploy workflow to pull-only with podman
2025-12-29 10:23:32 -03:00
Tiago Yamamoto
1058b7005f
chore: update deploy workflow and frontend Dockerfile
2025-12-28 23:28:44 -03:00
bohessefmvb
808ef3524f
Update .drone.yml
...
Ajuste
2025-12-28 21:55:19 -03:00
Tiago Yamamoto
59b1b5ea6a
fix: add --no-cache and correct API URLs to frontend build
2025-12-28 16:07:51 -03:00
Tiago Yamamoto
a65259688f
fix(docker): Increase NODE_OPTIONS memory for build
...
The docker build was failing due to a JavaScript heap out of memory error.
This commit increases the --max-old-space-size in NODE_OPTIONS from 384MB to 2048MB
in the builder stage of the Dockerfile to provide more memory for the build process,
resolving the memory allocation failure during
> backoffice@0.0.1 build /home/yamamoto/lab/gohorsejobs/backoffice
> nest build.
2025-12-28 13:48:22 -03:00
Tiago Yamamoto
d894012af6
perf(docker): ultra-optimize backend build
...
- Use scratch base image (< 20MB final vs ~50MB alpine)
- Add BuildKit cache for go modules and build cache
- Selective COPY (cmd, internal, migrations, docs) instead of COPY . .
- Remove HEALTHCHECK (not supported by Podman OCI)
- Update .gitignore with more binary patterns
- Optimize .dockerignore to exclude tests and binaries
2025-12-28 12:05:12 -03:00
Tiago Yamamoto
3d704191e1
perf(docker): optimize backoffice Dockerfile
...
- Add --prefer-offline for faster installs
- Reduce NODE_OPTIONS to 384MB
- Add pnpm store prune to cleanup unused packages
- Unique cache id (pnpm-backoffice) to avoid conflicts
- Cleanup caches in same layer
2025-12-28 11:21:57 -03:00
Tiago Yamamoto
a9d6ac0305
perf(docker): migrate frontend to pnpm + optimize dockerignore
...
- Migrate from npm to pnpm for 2-3x faster installs
- Add BuildKit cache mount for pnpm store
- Auto-import package-lock.json to pnpm-lock.yaml
- Reduce NODE_OPTIONS memory to 512MB
- Add more exclusions to .dockerignore (cypress, e2e, tests)
- Cleanup caches in same layer to save disk
2025-12-28 11:20:33 -03:00
Tiago Yamamoto
93367d7cd6
test(backoffice): add unit tests for StripeService
...
- Add 8 test cases covering all StripeService methods
- Mock Stripe SDK for isolated testing
- Test createCustomer, createSubscription, cancelSubscription
- Test listSubscriptions, createCheckoutSession, createBillingPortalSession
- Test constructWebhookEvent and onModuleInit
2025-12-28 11:03:58 -03:00
Tiago Yamamoto
cb31713307
fix(docker): update frontend Dockerfile for Podman compatibility
...
- Remove deprecated --only=production flag
- Add default value for NEXT_PUBLIC_API_URL build arg
- Add BuildKit cache mount for npm
- Remove HEALTHCHECK (not supported by Podman OCI format)
2025-12-28 11:02:05 -03:00
Tiago Yamamoto
632fc78982
feat(ci): add backoffice to deploy pipeline + optimize Dockerfile
...
- Add backoffice paths trigger to deploy workflow
- Implement conditional builds (only build changed services)
- Optimize Dockerfile with BuildKit cache mounts
- Update pnpm to latest version
- Remove HEALTHCHECK (not supported by Podman OCI format)
2025-12-28 10:47:28 -03:00
Tiago Yamamoto
69534f5810
docs: update roadmap and add admin handler tests
2025-12-28 03:04:18 -03:00
Tiago Yamamoto
c61022a277
docs: update ER diagram with all tables
2025-12-28 02:39:03 -03:00
Tiago Yamamoto
c0ed01232c
docs(backoffice): add C4 architecture diagram
2025-12-28 02:36:56 -03:00
Tiago Yamamoto
8bfd713f0f
docs: fix mermaid syntax in README
2025-12-28 02:35:27 -03:00
Tiago Yamamoto
a5323a4eaf
fix(backend): fix AdminService tests and expand CoreHandlers coverage
2025-12-28 02:32:57 -03:00
Tiago Yamamoto
6c87078200
test: increase backend test coverage - sanitizer, middleware, handlers, services
...
- Add tests for SanitizeEmail, SanitizeDescription, DefaultSanitizer
- Add AuthMiddleware and RequireRole tests
- Add admin_handlers_test.go and location_handlers_test.go
- Expand application_service_test.go with more methods
2025-12-28 01:48:12 -03:00
Tiago Yamamoto
1e30f57705
test: add new NotificationService instantiation test
2025-12-28 01:34:07 -03:00
Tiago Yamamoto
9c38c5f6c2
fix: use setup-go action instead of container image for CI tests
2025-12-28 01:32:56 -03:00
Tiago Yamamoto
a5bb7b2a31
feat: add backend tests to CI pipeline, improve responsive design, add unit tests
...
- Add test-backend job to .forgejo/workflows/deploy.yaml
- Fix JobService and TicketService tests
- Create ticket_service_test.go
- Create frontend unit tests (forgot-password, jobs/[id], dashboard/users)
- Improve responsiveness for users page, forgot-password, and apply page
2025-12-28 01:27:48 -03:00
Tiago Yamamoto
53d5b9822a
fix: frontend build error in tickets page
2025-12-28 00:29:46 -03:00
Tiago Yamamoto
b79566aad7
docs: update backend api docs and swagger
2025-12-28 00:29:34 -03:00
Tiago Yamamoto
2217755478
docs: fix mermaid diagram syntax in backend readme
2025-12-27 23:42:42 -03:00
Tiago Yamamoto
6a7759b039
refactor(frontend): replace mocks with real api integration in my-jobs
2025-12-27 23:40:35 -03:00
Tiago Yamamoto
31e269034d
docs: add b2c marketplace roadmap section to main readme
2025-12-27 23:38:53 -03:00
Tiago Yamamoto
a79743df33
feat(frontend): implement roadmap features - services link and boost job action
2025-12-27 23:25:16 -03:00
Tiago Yamamoto
e6131dfe33
docs: adjust deploy runner info to 'docker' in backend readme
2025-12-27 23:19:55 -03:00
Tiago Yamamoto
82e55ed9ac
ci: refine deploy workflow with podman fixes, dir check and action url
2025-12-27 23:17:32 -03:00
Tiago Yamamoto
83e16d78f6
docs: update roadmap with intense marketplace gap analysis
2025-12-27 23:15:46 -03:00
Tiago Yamamoto
7783c9a0dc
docs: add troubleshooting section and update workflow runner label
2025-12-27 23:11:08 -03:00
Tiago Yamamoto
c651cbda1d
docs/ci: move workflow to .forgejo and add architecture diagram
2025-12-27 23:02:54 -03:00
Tiago Yamamoto
0bc1c27ef6
docs: update backend documentation with deployment and new services
2025-12-27 22:58:23 -03:00
Tiago Yamamoto
1b518aa468
feat: configure backend dev deployment workflow
2025-12-27 22:54:37 -03:00
Tiago Yamamoto
bb24725f36
Remove accidental root package-lock.json
2025-12-27 21:58:59 -03:00
Tiago Yamamoto
e49485fe64
Update package-lock.json and finalize dev state
2025-12-27 21:56:50 -03:00
Tiago Yamamoto
9d19751acb
Resolve merge conflicts in backend, backoffice, and frontend
2025-12-27 21:45:48 -03:00
Tiago Yamamoto
cba13eaab5
Merge branch 'dev' of github.com-pessoal:rede5/gohorsejobs into dev
2025-12-27 20:50:05 -03:00
Tiago Yamamoto
0fd114d097
chore(backoffice): update dependencies and resolve peer dependency warnings
2025-12-27 20:49:08 -03:00
Tiago Yamamoto
b23393bf35
feat: implement stripe subscriptions, google analytics, and user crud
...
- Backend:
- Add Stripe subscription fields to companies (migration 019)
- Implement Stripe Checkout and Webhook handlers
- Add Metrics API (view count, recording)
- Update Company and Job models
- Frontend:
- Add Google Analytics component
- Implement User CRUD in Backoffice (Dashboard)
- Add 'Featured' badge to JobCard
- Docs: Update Roadmap and artifacts
2025-12-27 12:06:54 -03:00
Tiago Yamamoto
c9a46acaff
fix: move go-sqlmock to direct dependencies
2025-12-27 11:31:59 -03:00
Tiago Yamamoto
63023b922f
feat(notifications): implementar sistema de notificações e FCM
...
- Migration 017: tabelas notifications e fcm_tokens
- Models: Notification, FCMToken
- NotificationService: CRUD, push notifications helper
- FCMService: Firebase Cloud Messaging integration
- NotificationHandler: endpoints REST
- Rotas autenticadas: /api/v1/notifications/*
Endpoints:
- GET /api/v1/notifications
- GET /api/v1/notifications/unread-count
- PUT /api/v1/notifications/read-all
- PUT /api/v1/notifications/{id}/read
- DELETE /api/v1/notifications/{id}
- POST /api/v1/notifications/fcm-token
- DELETE /api/v1/notifications/fcm-token
2025-12-27 11:24:27 -03:00
Tiago Yamamoto
9ee9f6855c
feat: implementar múltiplas features
...
Backend:
- Password reset flow (forgot/reset endpoints, tokens table)
- Profile management (PUT /users/me, skills, experience, education)
- Tickets system (CRUD, messages, stats)
- Activity logs (list, stats)
- Document validator (CNPJ, CPF, EIN support)
- Input sanitizer (XSS prevention)
- Full-text search em vagas (plainto_tsquery)
- Filtros avançados (location, salary, workMode)
- Ordenação (date, salary, relevance)
Frontend:
- Forgot/Reset password pages
- Candidate profile edit page
- Sanitize utilities (sanitize.ts)
Backoffice:
- TicketsModule proxy
- ActivityLogsModule proxy
- Dockerfile otimizado (multi-stage, non-root, healthcheck)
Migrations:
- 013: Profile fields to users
- 014: Password reset tokens
- 015: Tickets table
- 016: Activity logs table
2025-12-27 11:19:47 -03:00
bohessefmvb
002f9abca1
Update .drone.yml
...
Ajuste no drone
2025-12-27 11:12:26 -03:00
bohessefmvb
92e3341a83
Update .drone.yml
...
Adicionando o MTU
2025-12-27 11:09:43 -03:00
bohessefmvb
7f1b910fc2
Update .drone.yml
...
Ajuste
2025-12-27 11:04:01 -03:00
Tiago Yamamoto
254f19766a
docs: add comprehensive project roadmap with gap analysis and launch priorities
2025-12-27 10:16:20 -03:00