{"id":23300449,"url":"https://github.com/byron-villegas/ms-discs","last_synced_at":"2026-05-18T02:32:06.232Z","repository":{"id":268489490,"uuid":"904521038","full_name":"byron-villegas/ms-discs","owner":"byron-villegas","description":"Microservice for my disc collection","archived":false,"fork":false,"pushed_at":"2026-02-08T01:27:20.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-08T08:10:39.765Z","etag":null,"topics":["flask","mongodb","python"],"latest_commit_sha":null,"homepage":"https://ms-discs.vercel.app","language":"Python","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/byron-villegas.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":"2024-12-17T03:55:24.000Z","updated_at":"2026-02-08T01:27:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2018de8-23ca-42f9-aec7-0c6139d9bb25","html_url":"https://github.com/byron-villegas/ms-discs","commit_stats":null,"previous_names":["byron-villegas/ms-discs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byron-villegas/ms-discs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byron-villegas%2Fms-discs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byron-villegas%2Fms-discs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byron-villegas%2Fms-discs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byron-villegas%2Fms-discs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byron-villegas","download_url":"https://codeload.github.com/byron-villegas/ms-discs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byron-villegas%2Fms-discs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["flask","mongodb","python"],"created_at":"2024-12-20T09:15:18.987Z","updated_at":"2026-05-18T02:32:06.226Z","avatar_url":"https://github.com/byron-villegas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ms-discs\nMicroservicio para mi coleccion de discos\n\n## Tabla de contenidos\n\n- [Crear Environment](#crear-environment)\n  - [Usar Environment](#usar-envinronment)\n  - [Instalar librerias](#instalar-librerias)\n  - [Librerias exclusivas para windows](#librerias-exclusivas-para-windows)\n  - [Actualizar requirements.txt](#actualizar-requirementstxt)\n  - [Listar librerias en formato json](#listar-librerias-en-formato-json)\n- [Ejecutar aplicacion](#ejecutar-aplicacion)\n- [Tests Unitarios](#tests-unitarios)\n  - [Configurar rutas](#configurar-rutas)\n  - [Ejecutarlo](#ejecutarlo)\n  - [Ejecutarlo con cobertura](#ejecutarlo-con-cobertura)\n  - [Generar reporte de cobertura en consola](#generar-reporte-de-cobertura-en-consola)\n  - [Generar reporte html de cobertura](#generar-reporte-html-de-cobertura)\n- [Tests de Rendimiento](#tests-de-rendimiento)\n- [Tests de Aceptación](#tests-de-aceptación)\n- [Links Referenciales](#links-referenciales)\n\n## Crear Environment\nSe debe ejecutar el siguiente comando\n\n```shell\npython3 -m venv .venv\n```\n\n### Usar Envinronment\nSe debe ejecutar el siguiente comando\n\n```shell\nsource .venv/bin/activate\n```\n\n### Instalar librerias\nSe debe ejecutar el siguiente comando\n\n```shell\npip install -r requirements.txt\n```\n\n#### Librerias exclusivas para windows\nCuando nos encontremos con una libreria exclusiva para windows debemos agregarle **;sys_platform == 'win32'** al final de la version en el archivo **requirements.txt**\n\nEjemplo\n\n```txt\npywin32==306;sys_platform == 'win32'\n```\nEntonces cuando hagamos un pip install -r requirements.txt en un sistema operativo como linux, macOS excluira esa libreria\n\n### Actualizar requirements.txt\nSe debe ejecutar el siguiente comando\n\n```shell\npip freeze \u003e requirements.txt\npip list --format json \u003e requirements.json\n```\n\n### Listar librerias en formato json\nSe debe ejecutar el siguiente comando\n\n```shell\npip list --format json\n```\n\n## Ejecutar aplicacion\nSe debe ejecutar el siguiente comando\n\n```shell\nflask --app app run\n```\n\n## Tests Unitarios\n#### Configurar rutas\nSe debe crear un archivo pyproject con el siguiente contenido\n\n```python\n[tool.pytest.ini_options]\ntestpaths = [\"tests\"]\n\n[tool.coverage.run]\nbranch = true\nsource = [\"config\", \"app\"]\n```\n\n#### Ejecutarlo\nSe debe ejecutar el siguiente comando\n\n```shell\npytest\n```\n\n#### Ejecutarlo con cobertura\nSe debe ejecutar el siguiente comando\n\n```shell\ncoverage run -m pytest\n```\n\n##### Generar reporte de cobertura en consola\nSe debe ejecutar el siguiente comando\n\n```shell\ncoverage report\n```\n\n##### Generar reporte html de cobertura\nSe debe ejecutar el siguiente comando\n\n```shell\ncoverage html\n```\n\n## Tests de Rendimiento\nSe debe ejecutar el siguiente comando\n\n```shell\nlocust -f performance-test/locust/python-flask.py -H http://localhost:5000 -u 5 -r 10 -t 40 --headless --html locust-report.html\n```\n\nAl finalizar generara un reporte locust-report.html\n\n## Tests de Aceptación\nSe debe ejecutar el siguiente comando\n\n```shell\nbehave acceptance-test/features -f html -o behave-report.html\n```\n\n## Links Referenciales\nA continuación dejo links utilizados para realizar este proyecto\n\n[Python Naming Conventions](https://www.geeksforgeeks.org/python-naming-conventions/)\n\n[Configuring Your Flask App](https://dev.to/hackersandslackers/configuring-your-flask-app-2246)\n\n[Flask How To Make Validation On Request JSON](https://stackoverflow.com/questions/61644396/flask-how-to-make-validation-on-request-json-and-json-schema)\n\n[Change Host and Port Of Flask On Run](https://stackoverflow.com/questions/41940663/how-can-i-change-the-host-and-port-that-the-flask-command-uses)\n\n[Performance Testing in Python: A Step-by-Step Guide with Locust](https://code.likeagirl.io/performance-testing-in-python-a-step-by-step-guide-with-flask-e5a56f99513d)\n\n[How To Run Locust](https://appian-locust.readthedocs.io/en/stable/how_to_run_locust.html)\n\n[Behave](https://behave.readthedocs.io/en/latest/tutorial/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyron-villegas%2Fms-discs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyron-villegas%2Fms-discs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyron-villegas%2Fms-discs/lists"}