{"id":23231156,"url":"https://github.com/smartpottech/smartpot-middleware","last_synced_at":"2025-06-14T07:39:03.408Z","repository":{"id":265269810,"uuid":"895645028","full_name":"SmartPotTech/SmartPot-Middleware","owner":"SmartPotTech","description":"SmartPot-Middleware is an intermediary solution designed to address communication issues between IoT devices and a RESTful API. Due to limitations in handling JSON and making reliable HTTP POST requests, this middleware uses FastAPI to manage data conversion and facilitate seamless communication between the two systems.","archived":false,"fork":false,"pushed_at":"2024-12-07T04:01:03.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-10T05:31:22.496Z","etag":null,"topics":["api","fastapi","https","middleware","python3","requests"],"latest_commit_sha":null,"homepage":"","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/SmartPotTech.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}},"created_at":"2024-11-28T15:43:27.000Z","updated_at":"2024-12-07T04:01:06.000Z","dependencies_parsed_at":"2024-12-10T05:43:39.309Z","dependency_job_id":null,"html_url":"https://github.com/SmartPotTech/SmartPot-Middleware","commit_stats":null,"previous_names":["smarpottech/smartpot-middleware","smartpottech/smartpot-middleware"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartPotTech%2FSmartPot-Middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartPotTech%2FSmartPot-Middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartPotTech%2FSmartPot-Middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartPotTech%2FSmartPot-Middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SmartPotTech","download_url":"https://codeload.github.com/SmartPotTech/SmartPot-Middleware/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230363971,"owners_count":18214717,"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":["api","fastapi","https","middleware","python3","requests"],"created_at":"2024-12-19T02:13:22.584Z","updated_at":"2024-12-19T02:13:23.173Z","avatar_url":"https://github.com/SmartPotTech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## **1. Construcción de la Imagen Docker**\n\n### 1 **Construcción de la Imagen Docker**\n\n1. **Abre una terminal** y navega hasta la raíz de tu proyecto, donde se encuentra el archivo `Dockerfile`.\n   \n2. Ejecuta el siguiente comando para construir la imagen Docker:\n\n   ```bash\n   docker build -t sebastian190030/middleware-smartpot:latest .\n   ```\n\n   **Explicación**:\n   - **`docker build`**: Este comando le indica a Docker que construya una imagen basada en las instrucciones del archivo `Dockerfile`.\n   - **`-t middleware-smartpot:latest`**: Le asigna el nombre `middleware-smartpot` y la etiqueta `latest` a la imagen Docker. El nombre de la imagen puede ser cualquier nombre que desees, pero es recomendable utilizar un nombre significativo.\n   - **`.`**: Este punto (`.`) especifica el directorio actual como contexto de construcción (es decir, el directorio donde se encuentra el `Dockerfile`).\n\n   Este comando construye la imagen Docker según lo especificado en el `Dockerfile`, incluyendo la instalación de dependencias y la configuración de la aplicación.\n\n\n## **2. Publicación de la Imagen en Docker Hub**\n\nUna vez que la imagen Docker esté lista, el siguiente paso es **subirla a Docker Hub** para poder compartirla y utilizarla en otros entornos.\n\n### 2.1 **Iniciar Sesión en Docker Hub**\n\nPara subir la imagen a **Docker Hub**, primero debes iniciar sesión en tu cuenta desde la terminal. Ejecuta el siguiente comando:\n\n```bash\ndocker login\n```\n\n**Explicación**:\n- **`docker login`**: Este comando solicita tu **nombre de usuario** y **contraseña** de Docker Hub. Si aún no tienes una cuenta, puedes crear una en [Docker Hub](https://hub.docker.com/).\n\nUna vez que inicies sesión correctamente, Docker te permitirá subir imágenes a tu cuenta de Docker Hub.\n\n### 2.2 **Subir la Imagen a Docker Hub**\n\nFinalmente, para subir la imagen a Docker Hub, ejecuta el siguiente comando:\n\n```bash\ndocker push sebastian190030/middleware-smartpot:latest\n```\n\n**Explicación**:\n- **`docker push`**: Este comando sube la imagen etiquetada al repositorio correspondiente en Docker Hub.\n\nEl proceso de subida puede tomar un tiempo, dependiendo del tamaño de la imagen y la velocidad de tu conexión a Internet. Una vez que termine, la imagen estará disponible en Docker Hub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartpottech%2Fsmartpot-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartpottech%2Fsmartpot-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartpottech%2Fsmartpot-middleware/lists"}