{"id":26235825,"url":"https://github.com/sub-dev/freecodecamp_metricimpconverter","last_synced_at":"2026-04-29T07:31:49.147Z","repository":{"id":275188039,"uuid":"924828799","full_name":"Sub-Dev/freecodecamp_metricimpconverter","owner":"Sub-Dev","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-31T18:09:47.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-30T14:35:55.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Sub-Dev.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-30T18:13:58.000Z","updated_at":"2025-01-31T18:09:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"62e04053-5860-41f3-a449-60cfc0b4d7f4","html_url":"https://github.com/Sub-Dev/freecodecamp_metricimpconverter","commit_stats":null,"previous_names":["sub-dev/freecodecamp_metricimpconverter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sub-Dev/freecodecamp_metricimpconverter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sub-Dev%2Ffreecodecamp_metricimpconverter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sub-Dev%2Ffreecodecamp_metricimpconverter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sub-Dev%2Ffreecodecamp_metricimpconverter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sub-Dev%2Ffreecodecamp_metricimpconverter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sub-Dev","download_url":"https://codeload.github.com/Sub-Dev/freecodecamp_metricimpconverter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sub-Dev%2Ffreecodecamp_metricimpconverter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32416145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-03-13T03:18:05.388Z","updated_at":"2026-04-29T07:31:49.142Z","avatar_url":"https://github.com/Sub-Dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📏 Conversor Imperial-Métrico\n\nEste é um projeto de conversor de unidades entre o sistema imperial e o sistema métrico, desenvolvido para a certificação de Controle de Qualidade do FreeCodeCamp.\n\n## 📌 Funcionalidades\n\n- ✅ Conversão entre diversas unidades de medida\n- ✅ Identifica entradas válidas e inválidas\n- ✅ Responde com JSON contendo os valores convertidos\n- ✅ API desenvolvida com Express.js\n- ✅ Testes unitários e funcionais com Mocha e Chai\n\n## 🚀 Tecnologias Utilizadas\n\n![Node.js](https://img.shields.io/badge/Node.js-43853D?style=for-the-badge\u0026logo=node.js\u0026logoColor=white)\n![Express.js](https://img.shields.io/badge/Express.js-000000?style=for-the-badge\u0026logo=express\u0026logoColor=white)\n![Mocha](https://img.shields.io/badge/Mocha-8D6748?style=for-the-badge\u0026logo=mocha\u0026logoColor=white)\n![Chai](https://img.shields.io/badge/Chai-A30701?style=for-the-badge\u0026logo=chai\u0026logoColor=white)\n\n## 📂 Estrutura do Projeto\n\n```\nboilerplate-project-metricimpconverter/\n│-- controllers/\n│   ├── convertHandler.js  # Lógica principal de conversão\n│-- tests/\n│   ├── 1_unit-tests.js    # Testes unitários\n│   ├── 2_functional-tests.js # Testes funcionais\n│-- server.js  # Configuração do servidor Express\n│-- README.md  # Documentação do projeto\n│-- package.json  # Dependências e scripts\n```\n\n## 🔧 Como Executar o Projeto\n\n1. Clone o repositório:\n   ```sh\n   git clone https://github.com/Sub-Dev/freecodecamp_metricimpconverter.git\n   ```\n2. Instale as dependências:\n   ```sh\n   npm install\n   ```\n3. Inicie o servidor:\n   ```sh\n   npm start\n   ```\n\nO servidor rodará em `http://localhost:3000`.\n\n## 🧪 Como Rodar os Testes\n\nPara executar os testes unitários e funcionais, utilize:\n\n```sh\nnpm test\n```\n\n## 🖥️ Endpoints da API\n\n### 📌 `GET /api/convert?input={valor}{unidade}`\n\n**Exemplo de uso:**\n\n```\n/api/convert?input=10L\n```\n\n**Resposta JSON:**\n\n```json\n{\n  \"initNum\": 10,\n  \"initUnit\": \"L\",\n  \"returnNum\": 2.64172,\n  \"returnUnit\": \"gal\",\n  \"string\": \"10 liters converts to 2.64172 gallons\"\n}\n```\n\n## 📜 Licença\n\nEste projeto segue a licença MIT.\n\n---\n\nFeito com 💙 para o FreeCodeCamp!\n\n# Metric-Imperial Converter\n\nThis is the boilerplate for the Metric-Imperial Converter project. Instructions for building your project can be found at https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-projects/metric-imperial-converter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsub-dev%2Ffreecodecamp_metricimpconverter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsub-dev%2Ffreecodecamp_metricimpconverter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsub-dev%2Ffreecodecamp_metricimpconverter/lists"}