{"id":37184430,"url":"https://github.com/luisgomez29/antpack-go","last_synced_at":"2026-01-14T21:18:37.523Z","repository":{"id":120047904,"uuid":"394783495","full_name":"luisgomez29/antpack-go","owner":"luisgomez29","description":"API REST para la gestión de usuarios con GO.","archived":false,"fork":false,"pushed_at":"2021-08-13T19:17:27.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T04:50:59.987Z","etag":null,"topics":["api","go","golang","mvc","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Go","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/luisgomez29.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":"2021-08-10T21:17:53.000Z","updated_at":"2021-08-13T19:17:29.000Z","dependencies_parsed_at":"2023-06-14T21:00:54.462Z","dependency_job_id":null,"html_url":"https://github.com/luisgomez29/antpack-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luisgomez29/antpack-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisgomez29%2Fantpack-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisgomez29%2Fantpack-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisgomez29%2Fantpack-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisgomez29%2Fantpack-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luisgomez29","download_url":"https://codeload.github.com/luisgomez29/antpack-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisgomez29%2Fantpack-go/sbom","scorecard":{"id":603522,"data":{"date":"2025-08-11","repo":{"name":"github.com/luisgomez29/antpack-go","commit":"408019bfeb3f3e1daa17f9373d7a18bcc9c8e0d0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"25 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2020-0017 / GHSA-w73w-5m7g-f7qc","Warn: Project is vulnerable to: GO-2024-3250 / GHSA-29wx-vh33-7x7r","Warn: Project is vulnerable to: GO-2025-3553 / GHSA-mh63-6h87-95cp","Warn: Project is vulnerable to: GO-2024-2605 / GHSA-m7wr-2xf7-cm9p","Warn: Project is vulnerable to: GO-2024-2606 / GHSA-mrww-27vc-gghv","Warn: Project is vulnerable to: GO-2022-1031 / GHSA-crxj-hrmp-4rwf","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8","Warn: Project is vulnerable to: GO-2022-1059 / GHSA-69ch-w2m2-3vjp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T01:02:46.191Z","repository_id":120047904,"created_at":"2025-08-21T01:02:46.191Z","updated_at":"2025-08-21T01:02:46.191Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"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":["api","go","golang","mvc","rest-api"],"created_at":"2026-01-14T21:18:36.791Z","updated_at":"2026-01-14T21:18:37.511Z","avatar_url":"https://github.com/luisgomez29.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Prueba técnica en Go - AntPack\n\nAPI REST para la gestión de usuarios con GO.\n\n## Requerimientos\n\n**GO 1.16**\n\n**PostgreSQL 12, 13**\n\n## Instalación en local\n\n1. Instalar la versión de GO 1.16 o posterior de acuerdo a su sistema operativo.\n\n   [Descargar GO](https://golang.org/dl/)\n\n\n2. Clonar el proyecto.\n\n\n3. Crear la base de datos.\n\n\n4. Migraciones usando `golang-migrate` **(opcional)**.\n\n    1. Descargar el ejecutable de `golang-migrate` para ejecutar las migraciones:\n\n       [Descargar golang-migrate](https://github.com/golang-migrate/migrate/releases)\n\n    2. En Windows guardar el archivo en la siguiente ruta:\n\n       ```bash\n       c:/go-migrate/migrate.exe\n       ```\n       Si elige otra ruta para guardar el ejecutable debe configurar el archivo `migrate.sh`.\n\n    3. Configurar DSN para conectarse a la base de datos en el archivo `migrate.sh`.\n\n    4. Para ejecutar las migraciones abrir la consola `Git Bash` y usar el siguiente comando:\n\n       ```bash\n       export DBPWD=mypassword \u0026\u0026 . migrate.sh up\n       ```\n       Donde el valor de la variable de entorno `DBPWD` es la contraseña de la base de datos.\n\n    5. Dentro de la carpeta [db](./migrations/db) de `migrations` encontrará el script para insertar registros de\n       prueba.\n\n\n5. Migraciones usando **pgAdmin**:\n\n    1. Dentro de la carpeta [versions](./migrations/versions) de `migrations` encontrará el script para crear las tablas\n       de la base de datos y en la carpeta [db](./migrations/db) el script para insertar registros de prueba.\n\n\n6. Configurar variables de entorno en el archivo `.env` (Ver el archivo `.env.example`).\n\n\n7. Ejecutar el servidor local:\n\n   ```bash\n    go run main.go\n   ```\n\n## Esquema\n\nVer [Migraciones](./migrations)\n\n## Endpoints\n\nEn la carpeta [postman](./postman) se encuentra la colección para consumir los endpoints.\n\nLa API REST proporciona las siguientes rutas:\n\n### Auth\n\n| Name | Route | Protected | Method |\n| ---- | ----- | --------- | ------ |\n| Signup | /signup | No | POST |\n| Login | /login | No | POST |\n\n### Users\n\n| Name | Route | Protected | Method |\n| ---- | ----- | --------- | ------ |\n| Get all users  | /users | Yes | GET |\n| Get User  | /users/:id | Yes | GET |\n\n## Tests\n\nLos tests se encuentran dentro de la carpeta [tests](./tests). Se prueban los endpoints de la API.\n\nSe utilizan los siguientes paquetes de Go:\n\n* Aserciones: [testify](https://github.com/stretchr/testify)\n* Generación de [**stubs**](https://stackoverflow.com/a/14081911) para simulación de\n  dependencias: [gomock](https://github.com/golang/mock)\n* Generador de datos aleatorios: [gofakeit](https://github.com/brianvoe/gofakeit)\n\nPara ejecutar los tests use el siguiente comando:\n\n  ```bash\n  cd tests \u0026\u0026 go test -v ./...\n  ```\n\n## Estructura del proyecto\n\nSe utilizan los principios del patrón de diseño MVC para hacer mantenible y escalable el proyecto.\n\n```\nanpack-go\n├── app                         Aplicación principal del proyecto.\n│   ├── auth                    Servicio de autenticación.\n│   ├── controllers             Funciones de controlador para una ruta en particular.\n│   ├── middlewares             Middlewares que se utilizarán en el proyecto.\n│   ├── models                  Tablas de la base de datos que se utilizarán como estructura de modelos.\n│   ├── repositories            Persistir los datos en la base de datos.\n│   ├── resources               Contiene estructuras que se usan como respuestas.\n│   ├── ├── api                 Recursos asosiados a la API.\n│   ├── ├── ├── errors          Tipos y manejo de errores.\n│   ├── ├── ├── requests        Estructuras y otros modelos usados para hacer solicitudes.\n│   ├── └── └── responses       Estructuras y otros modelos usadas como respuesta.\n│   ├── routes                  Rutas de la API.\n│   ├── services                Logica de negocio.\n│   └── utils                   Funciones de ayuda utilizadas en todo el proyecto.\n├── migrations                  Migraciones de base de datos\n│   ├── db                      Archivos de consultas SQL.\n│   └── versions                Versiones individuales del esquema de la base de datos.\n├── pkg                         Paquetes generales independientes del framework usado.\n│   ├── config                  Archivos para leer variables de entorno.\n│   ├── database                Archivos para conectarse a base de datos.\n│   ├── faker                   Generador de datos falsos aleatorios.\n│   └── mock                    Archivos para simular la base de datos.\n├── main.go                     Punto de entrada para iniciar el servidor.\n├── .env.example                Archivo de ejemplo para configurar las variables de entorno.\n└── migrate.sh                  Script para ejecutar las migraciones de la base de datos.\n```\n\n## Autor\n\n**Luis Guillermo Gómez**\n\n- [Github](https://github.com/luisgomez29)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisgomez29%2Fantpack-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluisgomez29%2Fantpack-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisgomez29%2Fantpack-go/lists"}