{"id":47869797,"url":"https://github.com/carlos-hfc/api-solid","last_synced_at":"2026-04-04T00:46:55.448Z","repository":{"id":239074374,"uuid":"798439817","full_name":"carlos-hfc/api-solid","owner":"carlos-hfc","description":"GymPass Style App desenvolvido no módulo sobre API REST da formação de Node.js da Rocketseat.","archived":false,"fork":false,"pushed_at":"2024-05-13T20:14:06.000Z","size":262,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-04T00:46:53.362Z","etag":null,"topics":["fastify","mysql","nodejs","prisma-orm","rocketseat","rocketseat-ignite","typescript","vitest","zod"],"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/carlos-hfc.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}},"created_at":"2024-05-09T19:27:04.000Z","updated_at":"2024-05-15T17:37:50.000Z","dependencies_parsed_at":"2024-05-12T06:00:56.212Z","dependency_job_id":null,"html_url":"https://github.com/carlos-hfc/api-solid","commit_stats":null,"previous_names":["carlos-hfc/api-solid"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/carlos-hfc/api-solid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlos-hfc%2Fapi-solid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlos-hfc%2Fapi-solid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlos-hfc%2Fapi-solid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlos-hfc%2Fapi-solid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlos-hfc","download_url":"https://codeload.github.com/carlos-hfc/api-solid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlos-hfc%2Fapi-solid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31383635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T23:20:52.058Z","status":"ssl_error","status_checked_at":"2026-04-03T23:20:51.675Z","response_time":107,"last_error":"SSL_read: 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":["fastify","mysql","nodejs","prisma-orm","rocketseat","rocketseat-ignite","typescript","vitest","zod"],"created_at":"2026-04-04T00:46:54.452Z","updated_at":"2026-04-04T00:46:55.438Z","avatar_url":"https://github.com/carlos-hfc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/node-v18.18.2-339933?style=flat\u0026logo=nodedotjs\u0026logoColor=%23339933\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/npm-v9.8.1-CB3837?style=flat\u0026logo=npm\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/feito_por-Carlos_Faustino-black\" /\u003e\n\u003c/p\u003e\n\n\u003cbr/\u003e\n\n# :bulb: Sobre\n\nGymPass Style App desenvolvido no módulo sobre API REST da formação de Node.js da Rocketseat.\n\n## :page_with_curl: Pré-requisitos\n\n1. Antes de começar, certifique-se de ter o Node.js instalado em sua máquina. \n    \u003ca href=\"https://nodejs.org\"\u003e\n      \u003cimg width=\"24\" src=\"https://user-images.githubusercontent.com/25181517/183568594-85e280a7-0d7e-4d1a-9028-c8c2209e073c.png\" alt=\"Node.js\" title=\"Node.js\"/\u003e\n    \u003c/a\u003e\n\n## :gear: Configuração\n\n1. Clone o repositório para sua máquina local:\n\n```bash\ngit clone https://github.com/carlos-hfc/api-rest-nodejs\n```\n\n2. Acesse o diretório do projeto:\n\n```bash\ncd api-rest-nodejs\n```\n\n3. Instale as dependências:\n\n```bash\nnpm install\n```\n\n4. Crie um arquivo `.env.local` na raiz do projeto e adicione as seguinte chaves:\n\n```env\nNODE_ENV=\"\"\nDATABASE_URL=\"\"\nJWT_SECRET=\"\"\n```\n\n5. Rode a aplicação\n\n```bash\nnpm run dev\n```\n\n## :computer_mouse: Features\n\n### Requisitos funcionais\n\n- :ballot_box_with_check: Deve ser possível se cadastrar\n- :ballot_box_with_check: Deve ser possível se autenticar\n- :ballot_box_with_check: Deve ser possível obter o perfil de um usuário logado\n- :ballot_box_with_check: Deve ser possível obter o número de check-ins realizados pelo usuário logado\n- :ballot_box_with_check: Deve ser possível o usúario obter o seu histórico de check-ins\n- :ballot_box_with_check: Deve ser possível o usuário buscar academias próximas (até 10km)\n- :ballot_box_with_check: Deve ser possível o usuário buscar academias pelo nome\n- :ballot_box_with_check: Deve ser possível o usuário realizar o check-in em uma academia\n- :ballot_box_with_check: Deve ser possível validar o check-in de um usuário\n- :ballot_box_with_check: Deve ser possível cadastrar uma academia\n\n### Regras de negócio\n\n- :ballot_box_with_check: O usuário não deve se cadastar com um e-mail duplicado\n- :ballot_box_with_check: O usuário não pode fazer 2 check-ins no mesmo dia\n- :ballot_box_with_check: O usuário não pode fazer check-in se não estiver perto (100m) da academia\n- :ballot_box_with_check: O check-in só pode ser validado até 20 minutos após ser criado\n- :ballot_box_with_check: O check-in só pode ser validado por administradores\n- :ballot_box_with_check: A academia só pode ser cadastrada por administradores\n\n### Requisitos não funcionais\n\n- :ballot_box_with_check: A senha do usuário precisa estar criptografada\n- :ballot_box_with_check: Os dados da aplicação precisam estar persistidos em um branco PostgreSQL\n- :ballot_box_with_check: Todas as listas de dadaos precisam estar paginadas com 20 itens por página\n- :ballot_box_with_check: O usuário deve ser identificado por um JWT (JSON Web Token)\n\n## :computer: Tecnologias utilizadas\n\n\u003cp float=\"left\"\u003e\n  \u003cimg width=\"50\" src=\"https://user-images.githubusercontent.com/25181517/183568594-85e280a7-0d7e-4d1a-9028-c8c2209e073c.png\" alt=\"Node.js\" title=\"Node.js\"/\u003e\n  \u003cimg width=\"50\" src=\"https://user-images.githubusercontent.com/25181517/183890598-19a0ac2d-e88a-4005-a8df-1ee36782fde1.png\" alt=\"TypeScript\" title=\"TypeScript\"/\u003e\n\u003c/p\u003e\n\n## :page_facing_up: Licença\n\nEste projeto está licenciado sob a [Licença MIT](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlos-hfc%2Fapi-solid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlos-hfc%2Fapi-solid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlos-hfc%2Fapi-solid/lists"}