{"id":28320163,"url":"https://github.com/juanlu3095/clinicalahuellaapi","last_synced_at":"2026-05-06T08:32:46.469Z","repository":{"id":269598364,"uuid":"907944078","full_name":"Juanlu3095/clinicalahuellaAPI","owner":"Juanlu3095","description":"API de la Clínica veterinaria La Huella con Node.js, Express y MySQL","archived":false,"fork":false,"pushed_at":"2025-08-17T14:58:02.000Z","size":6096,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-17T16:29:53.977Z","etag":null,"topics":["csrf-protection","express","gemini-api","gmail-nodemailer","google-analytics-api","javascript","jest-tests","jwt-cookie","mvc","mysql2","nodejs","supertest"],"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/Juanlu3095.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}},"created_at":"2024-12-24T17:01:50.000Z","updated_at":"2025-08-17T14:57:56.000Z","dependencies_parsed_at":"2025-01-10T20:32:08.472Z","dependency_job_id":"3f325a25-8ea3-4b22-a64b-e582db018c00","html_url":"https://github.com/Juanlu3095/clinicalahuellaAPI","commit_stats":null,"previous_names":["juanlu3095/clinicalahuellaapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Juanlu3095/clinicalahuellaAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Juanlu3095%2FclinicalahuellaAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Juanlu3095%2FclinicalahuellaAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Juanlu3095%2FclinicalahuellaAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Juanlu3095%2FclinicalahuellaAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Juanlu3095","download_url":"https://codeload.github.com/Juanlu3095/clinicalahuellaAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Juanlu3095%2FclinicalahuellaAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32684647,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["csrf-protection","express","gemini-api","gmail-nodemailer","google-analytics-api","javascript","jest-tests","jwt-cookie","mvc","mysql2","nodejs","supertest"],"created_at":"2025-05-25T10:08:29.157Z","updated_at":"2026-05-06T08:32:46.464Z","avatar_url":"https://github.com/Juanlu3095.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Clínica La Huella API\n\nClínica La Huella API es una API Rest que utiliza node.js, Express y MySQL para ofrecer una solución para el backend de una clínica ficticia de veterinaria.\n\n## Requisitos\n\nPara utilizar esta API necesitas tener instalado lo siguiente: \n\n**Node.js:** v20.13.1 o superior.  \n**NVM** (Recomendable)\n\n## Instalación\n\n1. Clona el repositorio.\n\n```bash\n  git clone https://github.com/Juanlu3095/clinicalahuellaAPI.git\n```\n2. Instala las dependencias.\n\n```bash\n  npm install\n```\n3. Crea tu archivo con las variables de entorno.\n\n- Renombra el archivo .env.example a .env y rellénalo con tu configuración. Las variables con '' son strings y el resto números.\n- Para las variables propias de la aplicación, rellena PORT, DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_DATABASE, DB_DATABASE_TEST, POOL_CONNECTIONLIMIT, FIRST_USER_EMAIL, FIRST_USER_PASS, BSALT y JWT_SECRET.\n- GOOGLE_GEMINI_API_TOKEN es el token de la API de Gemini AI.\n- Para nodemailer y Gmail API, MAIL_AUTH_USER, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET y GOOGLE_REFRESH_TOKEN se obtienen de OAuth2Client de la API de Google en https://console.developers.google.com/ y https://developers.google.com/oauthplayground/.\n- GOOGLE_CLIENT_SERVICE_EMAIL, GOOGLE_CLIENT_SERVICE_PRIVATE_KEY y PROPERTY_ID para Google Analytics obtenibles también en https://console.developers.google.com/ con una cuenta de servicio.\n\n\n4. Crea la base de datos.\n\n```bash\n  npm run migrate:mysql\n```\n\n5. Crea valores en las tablas.\n\n```bash\n  npm run seed:mysql\n```\n\n6. Ejecuta el servidor.\n\n```bash\n  npm run prod\n```\n\no para desarrollo: \n\n```bash\n  npm run dev\n```\n\n## Testing\n\nLa API utiliza Jest y Supertest para realizar las pruebas, además de valerse de las migraciones y los seeders para crear la base de datos, sus tablas y algunos valores con los que trabajar de forma automatizada. Antes de ejecutarlos es necesario descomentar el siguiente código en middleware/cors.js:\n\n```bash\n  if (!origin) {\n    return callback(null, true)\n  }\n```\n\nPara ejecutar los tests:\n\n```bash\n  npm run test\n```\n\no para uno en concreto:\n\n```bash\n  npm run test nombredeltest\n```\n\n## Documentación\n\nPara ver la documentación de la aplicación haz clic \u003ca href=\"https://drive.google.com/file/d/1XjvCEPnXBNrikfbmEOO4Bf3H8szjnjqG/view?usp=drive_link\"\u003eaquí\u003c/a\u003e.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuanlu3095%2Fclinicalahuellaapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuanlu3095%2Fclinicalahuellaapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuanlu3095%2Fclinicalahuellaapi/lists"}