{"id":18308921,"url":"https://github.com/guiribei/challenge_one","last_synced_at":"2026-04-10T17:03:28.453Z","repository":{"id":208702754,"uuid":"722283407","full_name":"Guiribei/challenge_one","owner":"Guiribei","description":"First part of a technical challenge for a backend position","archived":false,"fork":false,"pushed_at":"2023-11-23T13:46:19.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T05:28:06.862Z","etag":null,"topics":["css","docker","docker-compose","html","javascript","node"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Guiribei.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":"2023-11-22T20:15:13.000Z","updated_at":"2023-11-23T15:32:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"38fee353-f1d3-4cdf-aefa-405b68e58516","html_url":"https://github.com/Guiribei/challenge_one","commit_stats":null,"previous_names":["guiribei/challange_one"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guiribei%2Fchallenge_one","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guiribei%2Fchallenge_one/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guiribei%2Fchallenge_one/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guiribei%2Fchallenge_one/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Guiribei","download_url":"https://codeload.github.com/Guiribei/challenge_one/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248030803,"owners_count":21036277,"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","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":["css","docker","docker-compose","html","javascript","node"],"created_at":"2024-11-05T16:09:43.917Z","updated_at":"2025-12-30T23:05:09.429Z","avatar_url":"https://github.com/Guiribei.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"🇧🇷\n\n# Desafio #1 Escribo\n\n\u003ci\u003eBem-vindo ao primeiro desafio do processo seletivo! Este repositório contém um programa simples de JavaScript que pode ser executado em dois ambientes diferentes: através de um navegador ou no lado do servidor usando Docker.\u003c/i\u003e\n\n## Executando pelo Navegador\n\nPara executar a lógica JavaScript em um ambiente de navegador, siga estes passos:\n\n1. Vá até a pasta `browser_approach`.\n2. Abra o arquivo `challenge.html` em seu navegador web de preferência.\n3. Interaja com o desafio diretamente na interface do navegador.\n\n## Executando no Terminal\n\nPara aqueles que preferem uma experiência do lado do servidor, preparei uma infraestrutura que utiliza Docker e docker-compose, que permitirá que você interaja via terminal. Se os pré-requisitos forem atendidos, esse é um jeito mais rápido e direto no bash.\n### Pré-requisitos\n\n- Docker\n- Docker Compose\n- Utilitário Make\n\nCertifique-se de ter o Docker e o Docker Compose instalados em seu sistema Unix para prosseguir com a abordagem pelo terminal.\n\n### Início Rápido com Make\n\nPrimeiro entre na pasta do repositório:\n\n```bash\ncd challenge_one\n```\n\nAssim, se você estiver em um sistema Unix que suporta Make, iniciar o programa é tão simples quanto executar um único comando:\n\n```bash\nmake\n```\nEste comando invocará o `Makefile` que está configurado para construir e executar o container Docker com base nos arquivos do diretório `server_approach`.\n\n### Docker Compose Direto no Windows ou Sistemas Sem Make\n\nSe você estiver usando Windows, ou se o seu sistema Unix não suportar Makefiles, você pode usar diretamente o Docker Compose executando:\n\n```bash\ndocker-compose -f server_approach/docker-compose.yml run challenge\n```\n\nExecute este comando a partir da raiz do repositório para construir a imagem Docker e executar o container.\n\n## Testes\n\nPara testar se tudo está funcionando, você pode inserir alguns números aleatórios (ou letras, símbolos, emojis, números negativos e estouros se você tem um espírito de QA 😈) e ver o resultado. Se encontrar algum comportamento inesperado, sinta-se à vontade para entrar em contato comigo! Ficarei feliz em corrigir o que estiver errado.\n\n## Precisa de Ajuda?\n\nSe você encontrar algum problema ou tiver dúvidas, por favor, crie uma issue neste repositório do GitHub, e eu lhe ajudarei o mais rápido possível.\n\nGrato!\n\n\u003chr\u003e\n\n🇺🇸\n\n# Challenge #1 Escribo\n\n\u003ci\u003eWelcome to Challenge One! This repository contains a simple JavaScript challenge that can be run in two different environments: through a browser or on the server-side using Docker.\u003c/i\u003e\n\n## Browser Approach\n\nTo run the JavaScript logic in a browser environment, follow these steps:\n\n1. Navigate to the `browser_approach` folder.\n2. Open the `challenge.html` file in your preferred web browser.\n3. Interact with the challenge directly within the browser interface.\n\n## Server-Side Approach\n\nFor those who prefer a server-side experience, I've prepared an infrastructure that utilizes Docker and docker-compose, which will allow you to interact via terminal. This allows for a seamless setup and execution of the challenge in a server environment.\n\n### Prerequisites\n\n- Docker\n- Docker Compose\n- Make Utility\n\nMake sure you have both Docker and Docker Compose installed on your Unix-based system to proceed with the server-side approach.\n\n### Quick Start with Make\n\nFirst enter the repo folder:\n\n```bash\ncd challenge_one\n```\n\nThen, if you are on a Unix system that supports Make, starting the program is as simple as running a single command:\n\n```bash\nmake\n```\n\nThis command will invoke the `Makefile` which is configured to set up and run the Docker container as specified in the `server_approach` directory.\n\n### Direct Docker Compose on Windows or Non-Make Systems\n\nIf you are using Windows, or if your Unix system does not support Makefiles, you can directly use Docker Compose by running:\n\n```\ndocker-compose -f server_approach/docker-compose.yml run challenge\n```\n\nExecute this command from the root directory of the repository to build the Docker image and run the container.\n\n## Testing\n\nIn order to test if everything is working, you can input some random numbers (or letters, simbols, emojis, overflows and negative numbers if you have a QA spirit 😈) and see the result. If you do find any non-expected behavior, feel free to contact me! I'll be pleased in correcting whatever was wrong.\n\n## Need Help?\n\nIf you run into any issues or have questions, please feel free to create an issue in this GitHub repository, and I'll help you out as soon as possible.\n\nThanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguiribei%2Fchallenge_one","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguiribei%2Fchallenge_one","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguiribei%2Fchallenge_one/lists"}