{"id":49571031,"url":"https://github.com/miquelmontero02/flaskdemodockerapp","last_synced_at":"2026-05-03T14:02:58.446Z","repository":{"id":352885989,"uuid":"1204730866","full_name":"MiquelMontero02/FlaskDemoDockerApp","owner":"MiquelMontero02","description":"Simpl Project used as Template for DAM/DAW students","archived":false,"fork":false,"pushed_at":"2026-04-21T14:12:02.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-21T16:24:05.040Z","etag":null,"topics":["docker","docker-compose","dockerfile","flask"],"latest_commit_sha":null,"homepage":"","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/MiquelMontero02.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-08T09:23:18.000Z","updated_at":"2026-04-21T14:12:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/MiquelMontero02/FlaskDemoDockerApp","commit_stats":null,"previous_names":["miquelmontero02/flaskdemodockerapp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MiquelMontero02/FlaskDemoDockerApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiquelMontero02%2FFlaskDemoDockerApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiquelMontero02%2FFlaskDemoDockerApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiquelMontero02%2FFlaskDemoDockerApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiquelMontero02%2FFlaskDemoDockerApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MiquelMontero02","download_url":"https://codeload.github.com/MiquelMontero02/FlaskDemoDockerApp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiquelMontero02%2FFlaskDemoDockerApp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32571456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["docker","docker-compose","dockerfile","flask"],"created_at":"2026-05-03T14:02:57.712Z","updated_at":"2026-05-03T14:02:58.441Z","avatar_url":"https://github.com/MiquelMontero02.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Requisitos\n- Tener una base de datos activa de MySQL\n- Si preferis, podeis levantar un container mapeando los puertos\n   - Usar MySQL\n      - ```docker run -d --name NOMBRE -e MYSQL_ROOT_PASSWORD=password -p 3306:3308 mariadb:latest```\n   - Usar MaiaDB\n      - ```docker run -d --name NOMBRE -e MYSQL_ROOT_PASSWORD=password -p 3306:3308 mysql:latest```\n\nDeberemos tener una base de datos creada. Aquí teneis un ejemplo de como hacerlo en el contenedor\n- Si usais MySQL:\n   - ```docker exec -it NOMBRE mysql -u root -p -e \u003cSQL_SENTENCE\u003e```\n- Si usais MariaDB\n   - ```docker exec -it NOMBRE mariadb -u root -p -e \u003cSQL_SENTENCE\u003e```\n# Instrucciones de instalación\n1. Clona este repositorio haciendo uso de git clone\n   \u003e```git clone https://github.com/MiquelMontero02/FlaskDemoDockerApp```\n2. Crear un entorno virtual dentro de la carpeta del repositorio\n   \u003e```py -m venv NOMBRE_ENTORNO```\n3. Activar el entorno\n   \u003e```NOMBRE_ENTORNO\\Scripts\\activate```\n4. Instalar dependencias\n   \u003e ```pip install -r requirements.txt```\n5. Crear un archivo .env similar al siguiente\n   \u003e```yaml\n   \u003eDATABASE_HOST=localhost\n   \u003eDATABASE_PORT=3306 #Puede que tengais el 3307!\n   \u003eDATABASE_NAME=test_db # Indicadle aquí el nombre de vuestra base de datos\n   \u003eDATABASE_USER=root\n   \u003eDATABASE_PASSWORD=12345678\n   \u003e```\n\n# Manual de usuario\n1. Activar servidor flask\n   \u003e ```flask run --debug```\n2. Una vez activado, se podrá acceder a 3 rutas desde la dirección `localhost:5000`\n   - [localhost:5000](localhost:5000) o [localhost:5000/](localhost:5000/): Landing route\n   - [localhost:5000/insert](localhost:5000/insert): realiza un insert de un Customer\n   - [localhost:5000/customers](localhost:5000/customers): Realiza una consulta para visualizar todos los customers\n\n# Objetivo del proyecto\n1. Configurar un Dockerfile para levantar una aplicación Flask\n2. Crear una imagen a partir de este Dockerfile, con el tag `v1.0`\n3. Levantar un contenedor con la nueva imagen creada\n4. Acceder a la aplicación hosteada por nuestro docker\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiquelmontero02%2Fflaskdemodockerapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiquelmontero02%2Fflaskdemodockerapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiquelmontero02%2Fflaskdemodockerapp/lists"}