{"id":34202551,"url":"https://github.com/bancodobrasil/stop-analyzing-api","last_synced_at":"2025-12-15T19:00:36.750Z","repository":{"id":49023442,"uuid":"272431951","full_name":"bancodobrasil/stop-analyzing-api","owner":"bancodobrasil","description":"Stop Analyzing API is the core module of Tinder like tool to help your customers make up their mind with no pain","archived":false,"fork":false,"pushed_at":"2021-06-30T19:42:50.000Z","size":174,"stargazers_count":22,"open_issues_count":12,"forks_count":17,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-06-19T00:23:13.943Z","etag":null,"topics":["docker","golang","hacktoberfest","poppins","prisma"],"latest_commit_sha":null,"homepage":"","language":"Go","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/bancodobrasil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-15T12:24:50.000Z","updated_at":"2024-01-15T23:31:29.000Z","dependencies_parsed_at":"2022-09-08T00:01:06.581Z","dependency_job_id":null,"html_url":"https://github.com/bancodobrasil/stop-analyzing-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bancodobrasil/stop-analyzing-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bancodobrasil%2Fstop-analyzing-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bancodobrasil%2Fstop-analyzing-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bancodobrasil%2Fstop-analyzing-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bancodobrasil%2Fstop-analyzing-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bancodobrasil","download_url":"https://codeload.github.com/bancodobrasil/stop-analyzing-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bancodobrasil%2Fstop-analyzing-api/sbom","scorecard":{"id":225016,"data":{"date":"2025-08-11","repo":{"name":"github.com/bancodobrasil/stop-analyzing-api","commit":"db15af9e3537f63a04e890e5af82d8aae2f5441d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":5,"reason":"Found 6/12 approved changesets -- score normalized to 5","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":"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:15: pin your Docker image by updating ubuntu:18.04 to ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98","Warn: goCommand not pinned by hash: scripts/prisma/generate.sh:6","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned"],"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2021-0052 / GHSA-h395-qcrw-5vmq","Warn: Project is vulnerable to: GHSA-3vp4-m3rf-835h","Warn: Project is vulnerable to: GO-2023-1737 / GHSA-2c4m-59x9-fr2g"],"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-17T03:35:05.331Z","repository_id":49023442,"created_at":"2025-08-17T03:35:05.331Z","updated_at":"2025-08-17T03:35:05.331Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27755878,"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-12-15T02:00:09.782Z","response_time":96,"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":["docker","golang","hacktoberfest","poppins","prisma"],"created_at":"2025-12-15T19:00:15.369Z","updated_at":"2025-12-15T19:00:36.743Z","avatar_url":"https://github.com/bancodobrasil.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stop Analyzing API\n\n[![This is a Poppins project](https://raw.githubusercontent.com/bancodobrasil/poppins/master/badge-poppins.svg)](https://github.com/bancodobrasil/poppins)\n[![first-timers-only](https://img.shields.io/badge/first--timers--only-friendly-blue.svg?style=flat-square)](https://www.firsttimersonly.com/)\n\nStop Analyzing is a tool that uses Tinder like interaction to help your customers make up their mind when choosing something that has lot of options, like a product of an e-commerce. [Check this repo for more details](https://github.com/bancodobrasil/stop-analyzing) and [this issue explains how this idea was born](https://github.com/bancodobrasil/stop-analyzing/issues/2). **Stop Analyzing API** has the core functions to make it happen.\n\n## This project was made for first-time contributors and open source beginners\n\nThis project follows the [Poppins manifesto guidelines](https://github.com/bancodobrasil/poppins) as part of it's community principles and policies, focusing all the decisions and interactions on providing open source beginners mentorship with real and relevant experiences, respecting each learning pace, background experience, academic formation, questions, suggestions, doubts and opinion.\n\n## Contribute now!\n\nSo, let's start contributing! **Open an issue asking for a task to be done by you**. A mentor/maintainer will come and provide a technical overview of the project and what are the possibles ways of contributing to the project. You will discuss the options and a suitable issue will be assigned or created to you.\n\nThat's it. Just make yourself at home and good luck!\n\n## Getting Started\n\n### Configure pre-commit code validations\n\nThis project includes pre-commit git hooks that make sure the code you commit is valid.\nIn order to use them, you should rewire the default git hooks folder in your local repository by running (only once) \n```bash\ngit config core.hooksPath githooks\n```\n\n\n### Generate database using the Prisma migration tool\n\nTo generate the database and the go class to handle the connection run the migration tool:\n\n1. Start database and pgadmin using the command\n\n```bash \ndocker-compose up -d postgres pgadmin\n```\n\n2. At the scripts/prisma folder run the **generate.sh** file using the command \n\n```bash \nsh generate.sh\n```\n\n3. Your database is started and the tables are generated\n\n### Build API using Docker\n\nTo build stop-analyzing-api run the below code at the project root folder to run with Docker (suggested):\n\n```\ndocker-compose build\n```\n\n### Run API using Docker\n\nTo run stop-analyzing-api run the below code at the project root folder:\n\n```\n$ docker-compose up stop-analyzing-api\n```\n\n### Build API environment using Docker\n\nTo build stop-analyzing-api environment execute the bash script below at the project root folder:\n\n```\n$ local_build.sh\n```\n\n### Run API using local Go installation\n\nExecute the Go command bellow at the project root folder:\n\n```\n$ DATABASE_URL=postgresql://user2020:pass2020@localhost:5432/stop-analyzing-api go run main.go\n```\n\n## Awesome list of other Poppins projects for you to go\n\n[![Awesome](https://camo.githubusercontent.com/1997c7e760b163a61aba3a2c98f21be8c524be29/68747470733a2f2f617765736f6d652e72652f62616467652e737667)](https://github.com/sindresorhus/awesome)\n\n- [First Contributions Repository](https://github.com/firstcontributions/first-contributions): Help beginners to contribute to open source projects\n- [Contribute to this Project](https://github.com/Syknapse/Contribute-To-This-Project): This is for absolute beginners. If you know how to write and edit an anchor tag \u003ca href=\"\" target=\"\"\u003e\u003c/a\u003e then you should be able to do it.\n- [Contribute to open source](https://github.com/danthareja/contribute-to-open-source):\n  Learn the GitHub workflow by contributing code in a fun simulation project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbancodobrasil%2Fstop-analyzing-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbancodobrasil%2Fstop-analyzing-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbancodobrasil%2Fstop-analyzing-api/lists"}