{"id":29826678,"url":"https://github.com/andreirech/clairfy-backend","last_synced_at":"2025-07-29T05:13:36.964Z","repository":{"id":302715088,"uuid":"1012738965","full_name":"AndreiRech/Clairfy-Backend","owner":"AndreiRech","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-03T20:26:03.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-03T21:29:34.755Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreiRech.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-02T19:59:45.000Z","updated_at":"2025-07-03T20:26:06.000Z","dependencies_parsed_at":"2025-07-03T21:30:25.231Z","dependency_job_id":null,"html_url":"https://github.com/AndreiRech/Clairfy-Backend","commit_stats":null,"previous_names":["andreirech/clairfy-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndreiRech/Clairfy-Backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiRech%2FClairfy-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiRech%2FClairfy-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiRech%2FClairfy-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiRech%2FClairfy-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreiRech","download_url":"https://codeload.github.com/AndreiRech/Clairfy-Backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiRech%2FClairfy-Backend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267633497,"owners_count":24118757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-29T05:13:36.392Z","updated_at":"2025-07-29T05:13:36.958Z","avatar_url":"https://github.com/AndreiRech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Guia de Instalação do Projeto Clairfy Backend\n\nEste guia tem como objetivo auxiliar na preparação do ambiente de desenvolvimento para o backend do projeto **Clairfy**. Siga os passos abaixo cuidadosamente para garantir que tudo funcione corretamente.\n\n## 🧰 1. Instale o Homebrew (caso ainda não tenha)\n\nO Homebrew é um gerenciador de pacotes para macOS. Se você já possui o Homebrew instalado, pode pular para o próximo passo.\n\n```bash\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n```\n\nPara garantir que está instalado corretamente:\n\n```bash\nbrew --version\n```\n\n---\n\n## 🐳 2. Instale o Docker\n\nO Docker é essencial para rodar o projeto em containers. Instale com o comando abaixo:\n\n```bash\nbrew install --cask docker\n```\n\nApós instalar:\n\n1. **Abra o Docker Desktop** (procure por \"Docker\" no Spotlight).\n2. Aguarde até que o Docker esteja rodando (ícone da baleia no topo da tela).\n\nVerifique se está funcionando corretamente:\n\n```bash\ndocker --version\ndocker run hello-world\n```\n\n---\n\n## 🐍 3. Instale o Python\n\nEste projeto usa Python para gerenciar dependências e scripts locais.\n\n```bash\nbrew install python\n```\n\nVerifique a instalação:\n\n```bash\npython3 --version\npip3 --version\n```\n\n---\n\n## 🧪 4. Crie e ative um ambiente virtual\n\nUm ambiente virtual isola as dependências do projeto para evitar conflitos.\n\n```bash\npython3 -m venv venv         # Cria o ambiente virtual\nsource venv/bin/activate     # Ativa o ambiente virtual\n```\n\nCom o ambiente ativado, instale as dependências:\n\n```bash\npip install -r requirements.txt\n```\n\n---\n\n## 🏗️ 5. Build e execução do projeto com Docker\n\nCom tudo instalado, agora vamos buildar e rodar o container Docker do backend.\n\n### 🔨 Build da imagem Docker\n\nNo diretório raiz do projeto (onde está o `Dockerfile`), execute:\n\n```bash\ndocker build -t clairfy-backend .\n```\n\n### 🚀 Execute o container\n\n```bash\ndocker run -d --name dev -p 8000:80 clairfy-backend\n```\n\nEste comando irá:\n\n* Criar um container chamado `dev`.\n* Tornar a aplicação acessível localmente na porta `8000`.\n\n---\n\n## 🧼 Dicas úteis\n\n* Para parar o container:\n\n```bash\ndocker stop dev\n```\n\n* Para remover o container:\n\n```bash\ndocker rm dev\n```\n\n* Para visualizar os logs:\n\n```bash\ndocker logs dev\n```\n\n* Para testar:\n\n```bash\ndocker rm -f dev 2\u003e/dev/null \u0026\u0026 docker build -t clairfy-backend . \u0026\u0026 docker run -d --name dev -p 8000:80 clairfy-backend\n```\n\n---\n\nSe tiver algum problema ou dúvida, verifique se todos os passos foram seguidos corretamente. Caso precise de ajuda, entre em contato com o time de desenvolvimento.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreirech%2Fclairfy-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreirech%2Fclairfy-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreirech%2Fclairfy-backend/lists"}