{"id":25819665,"url":"https://github.com/rodrigvf/nest-challenge","last_synced_at":"2026-06-11T00:31:52.496Z","repository":{"id":250501002,"uuid":"833357465","full_name":"RodrigVF/nest-challenge","owner":"RodrigVF","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-28T02:27:29.000Z","size":119,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T14:49:21.422Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/RodrigVF.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}},"created_at":"2024-07-24T22:07:59.000Z","updated_at":"2024-09-21T15:12:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9bb8c6c-553e-4dca-871b-f2e4d7fa066f","html_url":"https://github.com/RodrigVF/nest-challenge","commit_stats":null,"previous_names":["rodrigvf/nest-challenge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RodrigVF/nest-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodrigVF%2Fnest-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodrigVF%2Fnest-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodrigVF%2Fnest-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodrigVF%2Fnest-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RodrigVF","download_url":"https://codeload.github.com/RodrigVF/nest-challenge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodrigVF%2Fnest-challenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34177445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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-02-28T08:59:44.056Z","updated_at":"2026-06-11T00:31:52.475Z","avatar_url":"https://github.com/RodrigVF.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Repositório Base para Projetos em Nest.js\n\n## Como Testar Localmente\n\n1. Configurar um arquivo `.env` com base no `.env.development`\n2. Executar os comandos a seguir no terminal:\n    ```sh\n    npm i\n    services:up\n    npm run start:dev\n    ```\n\n## Comandos para Configurar Ambiente (Ubuntu/DigitalOcean)\n\n1. Atualizar e instalar dependências:\n    ```sh\n    sudo apt update \u0026\u0026 sudo apt upgrade -y\n    sudo apt install nodejs npm -y\n    ```\n\n2. Instalar Docker:\n    ```sh\n    curl -fsSL https://get.docker.com -o get-docker.sh\n    sudo sh get-docker.sh\n    sudo usermod -aG docker username\n    sudo curl -L \"https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-$(uname -s)-$(uname -m)\" -o /usr/local/bin/docker-compose\n    sudo chmod +x /usr/local/bin/docker-compose\n    docker --version\n    docker-compose --version\n    ```\n\n3. Clonar o repositório e configurar:\n    ```sh\n    git clone nest-challenge\n    cd nest-challenge\n\n    # Configurar o .env\n    ```\n\n4. Iniciar os serviços e a aplicação:\n    ```sh\n    services:up\n    npm i\n    npm run start\n    ```\n\n## Observação\n\nCaso o Kafka não esteja iniciando, pode ser necessário editar o `compose.yaml` para limitar a memória do Kafka conforme o exemplo:\n\n```yaml\nkafka:\n  image: wurstmeister/kafka:latest\n  environment:\n    KAFKA_BROKER_ID: 1\n    KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181\n    KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:7075\n    KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:7075\n    KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT\n    KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE\n    KAFKA_HEAP_OPTS: \"-Xmx512M -Xms512M\"  # Limitar o uso de memória do Kafka\n  ports:\n    - \"7075:7075\"\n  depends_on:\n    - zookeeper\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigvf%2Fnest-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodrigvf%2Fnest-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigvf%2Fnest-challenge/lists"}