{"id":29861336,"url":"https://github.com/evelynnnie/formula1-api","last_synced_at":"2026-05-07T10:38:25.435Z","repository":{"id":306160891,"uuid":"1025130005","full_name":"evelynnnie/formula1-api","owner":"evelynnnie","description":"API RESTful F1 | Node.js \u0026 TypeScript | Fastify","archived":false,"fork":false,"pushed_at":"2025-07-23T23:21:05.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-24T02:07:54.463Z","etag":null,"topics":["fastify","nodejs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evelynnnie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-23T19:13:43.000Z","updated_at":"2025-07-23T23:23:38.000Z","dependencies_parsed_at":"2025-07-24T02:07:57.439Z","dependency_job_id":"d6875477-b2b9-4928-8f3c-152bd864232d","html_url":"https://github.com/evelynnnie/formula1-api","commit_stats":null,"previous_names":["evelynnnie/formula1-api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/evelynnnie/formula1-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evelynnnie%2Fformula1-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evelynnnie%2Fformula1-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evelynnnie%2Fformula1-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evelynnnie%2Fformula1-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evelynnnie","download_url":"https://codeload.github.com/evelynnnie/formula1-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evelynnnie%2Fformula1-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267814099,"owners_count":24148325,"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-30T02:00:09.044Z","response_time":70,"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":["fastify","nodejs","typescript"],"created_at":"2025-07-30T05:01:12.827Z","updated_at":"2026-05-07T10:38:25.405Z","avatar_url":"https://github.com/evelynnnie.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Formula 1 API\n\nUma API simples construída com Node.js, TypeScript e Fastify para fornecer dados sobre equipes e pilotos da Fórmula 1.\n\n## ✨ Features\n\n- Listagem de todas as equipes.\n- Listagem de todos os pilotos.\n- Busca de um piloto específico por ID.\n\n## 🚀 Tecnologias Utilizadas\n\n- **[Node.js](https://nodejs.org/)**: Ambiente de execução JavaScript.\n- **[TypeScript](https://www.typescriptlang.org/)**: Superset do JavaScript que adiciona tipagem estática.\n- **[Fastify](https://www.fastify.io/)**: Framework web rápido e de baixa sobrecarga para Node.js.\n- **[tsx](https://github.com/esbuild-kit/tsx)**: Executa arquivos TypeScript e ESM no Node.js sem a necessidade de pré-compilação.\n- **[tsup](https://tsup.egoist.dev/)**: Ferramenta para compilar bibliotecas TypeScript com o poder do esbuild.\n\n## 📋 Pré-requisitos\n\nAntes de começar, você vai precisar ter instalado em sua máquina:\n- [Node.js](https://nodejs.org/) (versão 18 ou superior)\n- [npm](https://www.npmjs.com/) ou [yarn](https://yarnpkg.com/)\n\n## 🏁 Como Começar\n\n1.  **Clone o repositório:**\n    ```bash\n    git clone https://github.com/evelynnnie/podcast-manager.git\n    cd formula1-api\n    ```\n\n2.  **Instale as dependências:**\n    ```bash\n    npm install\n    ```\n\n## ▶️ Como Usar\n\nO projeto possui scripts para facilitar o desenvolvimento e a execução.\n\n- **Modo de Desenvolvimento (com hot-reload):**\n  Este comando iniciará o servidor e o reiniciará automaticamente a cada alteração nos arquivos.\n  ```bash\n  npm run start:watch\n  ```\n\n- **Build para Produção:**\n  O comando a seguir irá compilar o projeto TypeScript para JavaScript na pasta `dist/`.\n  ```bash\n  npm run dist\n  ```\n\n- **Executar em modo de Produção:**\n  Este comando primeiro faz o build e depois executa o servidor a partir dos arquivos compilados.\n  ```bash\n  npm run start:dist\n  ```\n\nApós iniciar, o servidor estará disponível em `http://localhost:3333`.\n\n## 🏎️ Endpoints da API\n\n### Listar todas as equipes\n\n- **URL:** `/teams`\n- **Método:** `GET`\n- **Resposta de Sucesso (Código `200 OK`):**\n  ```json\n  [\n      { \"id\": 1, \"name\": \"Mclaren\", \"base\": \"Woking, United Kingdom\" },\n      { \"id\": 2, \"name\": \"Mercedes\", \"base\": \"Brackley, United Kingdom\" }\n  ]\n  ```\n\n### Listar todos os pilotos\n\n- **URL:** `/drivers`\n- **Método:** `GET`\n- **Resposta de Sucesso (Código `200 OK`):**\n  ```json\n  [\n      { \"id\": 1, \"name\": \"Max Verstappen\", \"team\": \"Red Bull Racing\" },\n      { \"id\": 2, \"name\": \"Lewis Hamilton\", \"team\": \"Mercedes\" }\n  ]\n  ```\n\n### Buscar piloto por ID\n\n- **URL:** `/drivers/:id`\n- **Método:** `GET`\n- **Exemplo:** `/drivers/3`\n- **Resposta de Sucesso (Código `200 OK`):**\n  ```json\n  { \"driver\": { \"id\": 3, \"name\": \"Lando Norris\", \"team\": \"Mclaren\" } }\n  ```\n- **Resposta de Erro (Código `404 Not Found`):**\n  ```json\n  { \"message\": \"Driver not found\" }\n  ```\n\n## 📄 Licença\n\nEste projeto está licenciado sob a Licença MIT. Veja o arquivo LICENSE para mais detalhes.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevelynnnie%2Fformula1-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevelynnnie%2Fformula1-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevelynnnie%2Fformula1-api/lists"}