{"id":18244710,"url":"https://github.com/devdevi/flask2020","last_synced_at":"2025-04-08T18:48:16.715Z","repository":{"id":106115835,"uuid":"272318792","full_name":"devdevi/flask2020","owner":"devdevi","description":"Flask, Docker ","archived":false,"fork":false,"pushed_at":"2023-05-22T22:45:32.000Z","size":19,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T14:53:34.938Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/devdevi.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":"2020-06-15T01:56:22.000Z","updated_at":"2020-06-15T03:09:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"921f8f15-f93e-4dcd-89fa-e7d403eed9a7","html_url":"https://github.com/devdevi/flask2020","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdevi%2Fflask2020","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdevi%2Fflask2020/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdevi%2Fflask2020/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdevi%2Fflask2020/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devdevi","download_url":"https://codeload.github.com/devdevi/flask2020/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247909108,"owners_count":21016475,"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","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":[],"created_at":"2024-11-05T09:17:23.393Z","updated_at":"2025-04-08T18:48:16.703Z","avatar_url":"https://github.com/devdevi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ApiRest D-BCH\n\nThis is an API Flask \n\n## Running Locally\n\nRun the following commands to get started running this app locally:\n```RUN: \n    . env/bin/activate\n    flask run\n```\n\nThen visit `http://localhost:5000` to play with the app.\n\n## Running Docker\n\n```\n    sudo docker container rm \u003ccontainer id\u003e\n    sudo docker build -t flaskapi:latest .\n    sudo docker run --rm -it -v $(pwd)/api_flask:/api_flask -p 5000:8080 flaskapi\n    sudo docker run --rm -it -v $(pwd)/api_flask:/api_flask -p 5000:5000 flaskapi sh\n    sudo docker run --rm -it -v $(pwd)/api_flask:/api_flask -p 5000:5000 --network=host flaskapi\ndocker run --rm -it  -p 5000:80  --name=flask -v $PWD:/app flask sh\n```\n## Licensing\n\nThis example is open-sourced software licensed under the\n[MIT license](https://opensource.org/licenses/MIT).\n\n# Flask 2020\n```\nsudo easy_install pip\n\npip install virtualenv\nvirtualenv venv --python=python3.7\npip freeze\npip install -r requirements.txt\nsource venv/bin/activate\n\n```\n### HERE\n```\nverificar si el puerto 56733 esta en uso\nsudo nc localhost 56733 \u003c dev/null; echo $?\nsudo bash start.sh\n```\n### Debugging en Flask\nDebugging: es el proceso de identificar y corregir errores de programación.\n\nPara activar el debug mode escribir lo siguiente en la consola:\n\n```\nexport FLASK_DEBUG=1\necho $FLASK_DEBUG\n````\n### Request y Response\nLogging: es una grabación secuencial en un archivo o en una base de datos de todos los eventos que afectan a un proceso particular.\n\nSe utiliza en muchos casos distintos, para guardar información sobre la actividad de sistemas variados.\n\nTal vez su uso más inmediato a nuestras actividades como desarrolladores web sería el logging de accesos al servidor web, que analizado da información del tráfico de nuestro sitio. Cualquier servidor web dispone de logs con los accesos, pero además, suelen disponer de otros logs, por ejemplo, de errores.\n\nLos sistemas operativos también suelen trabajar con logs, por ejemplo para guardar incidencias, errores, accesos de usuarios, etc.\n\nA través de el logs se puede encontrar información para detectar posibles problemas en caso de que no funcione algún sistema como debiera o se haya producido una incidencia de seguridad.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdevi%2Fflask2020","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevdevi%2Fflask2020","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdevi%2Fflask2020/lists"}