Skip to content

Develop#102

Merged
Benevanio merged 5 commits into
masterfrom
develop
May 27, 2026
Merged

Develop#102
Benevanio merged 5 commits into
masterfrom
develop

Conversation

@Benevanio

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 27, 2026 14:51
@vercel

vercel Bot commented May 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
painel-vagas Ready Ready Preview, Comment May 27, 2026 3:10pm

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adiciona documentação e especificações OpenAPI para o serviço de scraping em Go e para o backend, além de pequenos ajustes de infra/configuração para facilitar setup local e padronizar variáveis.

Changes:

  • Cria documentação detalhada do scraper Go e do backend (endpoints, fluxo, env vars e exemplos).
  • Adiciona especificação OpenAPI do scraper Go (YAML + JSON) e script para gerar OpenAPI do backend.
  • Atualiza docker-compose.infra.yml, .env.example e dicionário do cspell.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
SCRAPER.md Documentação do serviço Go (arquitetura, endpoints e operação).
scraper-go/openapi.yaml OpenAPI (YAML) do serviço Go.
scraper-go/openapi.json OpenAPI (JSON) do serviço Go.
docker-compose.infra.yml Compose de infra com Postgres + Valkey.
backend/scripts/generate-openapi.cjs Script para exportar OpenAPI do backend em JSON/YAML.
backend/.env.example Exemplo de env reorganizado/expandido (inclui OAuth, sessão, URLs).
BACKEND.md Documentação do backend (rotas, módulos, execução, exemplos).
.cspell/custom-dictionary-workspace.txt Expande dicionário PT-BR para reduzir falsos positivos.

Comment thread SCRAPER.md

## Como executar

Requisitos: Go >= 1.26, Redis (opcional, mas recomendado)
Comment thread SCRAPER.md

O serviço expõe endpoints HTTP (implementação em `cmd/server` e arquivos associados). Principais rotas:

- POST `/scrape` — body JSON com `ScrapeRequest` para disparar uma busca em todas as fontes configuradas. Retorna `ScrapeResponse` com `jobs`, `total`, `cachedAt` e `fromCache`.
Comment thread SCRAPER.md

## Variáveis de ambiente importantes

- `REDIS_URL` / `VALKEY_URL` — conexão Redis/Valkey.
Comment thread SCRAPER.md

---

Arquivo gerado: `scraper-go/SCRAPER.md`.
Comment thread scraper-go/openapi.yaml
version: 1.0.0
description: API mínima para disparar scrapes e gerenciar keywords
servers:
- url: http://localhost:8080
Comment thread scraper-go/openapi.json
Comment on lines +41 to +85
"/api/keywords": {
"get": {
"summary": "Retorna keywords carregadas",
"responses": {
"200": {
"description": "Lista de keywords",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"keywords": {
"type": "array",
"items": { "type": "string" }
}
}
}
}
}
}
}
},
"post": {
"summary": "Atualiza/persiste keywords",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"keywords": {
"type": "array",
"items": { "type": "string" }
}
}
}
}
}
},
"responses": {
"202": { "description": "Keywords enfileiradas/aceitas" }
}
}
}
Comment thread scraper-go/openapi.json
Comment on lines +103 to +120
"ScrapeRequest": {
"type": "object",
"properties": {
"keywords": { "type": "array", "items": { "type": "string" } },
"searchLocation": { "type": "string" },
"searchGeoId": { "type": "string" },
"searchLanguage": { "type": "string" },
"jobTypes": { "type": "string" },
"timeFilter": { "type": "string" },
"remoteOnly": { "type": "boolean" },
"resultsPerPage": { "type": "integer" },
"maxPagesPerKeyword": { "type": "integer" },
"waitBetweenSearchesMs": { "type": "integer" },
"pageTimeoutMs": { "type": "integer" },
"maxConcurrency": { "type": "integer" }
},
"required": ["keywords"]
},
Comment thread BACKEND.md

---

Para editar ou complementar esta documentação, abra [backend/BACKEND.md](backend/BACKEND.md).
Comment thread BACKEND.md
Comment on lines +180 to +184
## Docker / Infra

- `Dockerfile` presente no diretório `backend`.
- `docker-compose.yml` no projeto raiz orquestra serviços (possivelmente `scraper-go`, `postgres`, `redis`).

Comment thread backend/.env.example
@@ -1,48 +1,65 @@
# Runtime
# Runtime
@Benevanio
Benevanio merged commit 94f26c5 into master May 27, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in JobAtlas – Kanban May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants