{"id":20675913,"url":"https://github.com/flor91/thumbnail_app","last_synced_at":"2026-02-04T11:08:32.286Z","repository":{"id":224115057,"uuid":"761226977","full_name":"Flor91/thumbnail_app","owner":"Flor91","description":"Thumbnail generator App deployed in AWS","archived":false,"fork":false,"pushed_at":"2024-02-23T21:58:05.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-10T18:52:32.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","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/Flor91.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-02-21T13:31:49.000Z","updated_at":"2024-02-23T20:33:15.000Z","dependencies_parsed_at":"2024-11-16T21:21:09.804Z","dependency_job_id":null,"html_url":"https://github.com/Flor91/thumbnail_app","commit_stats":null,"previous_names":["flor91/thumbnail_app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Flor91/thumbnail_app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flor91%2Fthumbnail_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flor91%2Fthumbnail_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flor91%2Fthumbnail_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flor91%2Fthumbnail_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flor91","download_url":"https://codeload.github.com/Flor91/thumbnail_app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flor91%2Fthumbnail_app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263832484,"owners_count":23517350,"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-16T21:11:06.149Z","updated_at":"2026-02-04T11:08:32.258Z","avatar_url":"https://github.com/Flor91.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Thumbnail generator\n[![Pre-commit Check](https://github.com/Flor91/thumbnail_app/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/Flor91/thumbnail_app/actions/workflows/pre-commit.yml)\n\nThumbnail generator App deployed in AWS using Terraform and Github Actions.\n\nWe have found a time machine and went back in time! The year is 2000 and social media is just taking off. The hottest thing is a thumbnail generator: you input a big picture and get a small picture as  output.\n\n## Description\n\nThis is a simple app that generates a thumbnail from a given image. The app is deployed in AWS using the following services:\n\n- Lambda\n- API Gateway\n\n### Requirements\n\n- Terraform\n- AWS CLI\n- Poetry\n\n#### Other Recommended tools\n\n- tfswitch\n- aws-vault or acp\n\n### How to run\n\nA `MAKEFILE` is provided to simplify the process. The following commands are available:\n\nAvailable targets:\n  setup                 Setup project\n  create-virtualenv     Create virtual environment\n  create-target-dir     Delete and create target directory\n  generate-lambda-zip   Generate Lambda function ZIP archive\n  init                  Initialize Terraform\n  fmt                   Format Terraform files\n  validate              Validate Terraform files\n  plan-dev              Plan Dev Terraform changes\n  apply-dev             Apply Dev Terraform changes\n  destroy-dev           Destroy Dev Terraform resources\n  plan-prod             Plan Prod Terraform changes\n  apply-prod            Apply Prod Terraform changes\n  destroy-prod          Destroy Prod Terraform resources\n  clean                 Clean up Terraform workspace\n  help                  Show this help.\n\n## How it works\n\nThe app is composed of 3 main components:\n- **API Gateway**: This is the entry point of the app. It receives the image binary encoded.\n- **Lambda**: This is the core of the app. It receives the image binary, generates the thumbnail and returns the small sized thumbnail binary.\n- **CloudWatch**: This is used to monitor the app.\n\n## About the architecture\n### Strengths\n\n- **Simplicity**: The app is simple. It is easy to understand and maintain.\n- **Cost**: The app is cheap. It is easy to optimize for cost.\n- **Performance**: The app is fast. It is easy to optimize for performance.\n- **Scalability**: The app is easy to scale. It is easy to handle a large number of requests.\n- **Logging**: The app is easy to monitor. It is easy to recover from failures.\n- **CI/CD**: The app is easy to deploy, and to synchronize the infrastructure with the code.\n\n### Weaknesses\n\n- **User interface**: This is simply an API service, no user interface is implemented.\n- **Security**: No security is implemented. It is easy to add security features.\n- **Error handling**: No error handling is implemented.\n- **Testing**: Testing layer is very simple, and code coverage is not 100%.\n- **Documentation**: Auto-generated documentation is not available. It would be very simple to add shpinx or mkdocs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflor91%2Fthumbnail_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflor91%2Fthumbnail_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflor91%2Fthumbnail_app/lists"}