{"id":21474685,"url":"https://github.com/yagoluiz/exchange-rate-api","last_synced_at":"2026-04-14T14:33:31.398Z","repository":{"id":148120674,"uuid":"347396539","full_name":"yagoluiz/exchange-rate-api","owner":"yagoluiz","description":"Exchange Rate API using .NET  5 and AWS infrastructure","archived":false,"fork":false,"pushed_at":"2022-01-25T21:23:18.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-17T07:44:57.687Z","etag":null,"topics":["aws","aws-cloudformation","docker","docker-compose","dotnet-5"],"latest_commit_sha":null,"homepage":"","language":"C#","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/yagoluiz.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":"2021-03-13T14:45:32.000Z","updated_at":"2022-01-25T21:23:21.000Z","dependencies_parsed_at":"2023-05-19T05:00:39.880Z","dependency_job_id":null,"html_url":"https://github.com/yagoluiz/exchange-rate-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yagoluiz/exchange-rate-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yagoluiz%2Fexchange-rate-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yagoluiz%2Fexchange-rate-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yagoluiz%2Fexchange-rate-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yagoluiz%2Fexchange-rate-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yagoluiz","download_url":"https://codeload.github.com/yagoluiz/exchange-rate-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yagoluiz%2Fexchange-rate-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31801417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["aws","aws-cloudformation","docker","docker-compose","dotnet-5"],"created_at":"2024-11-23T10:24:45.684Z","updated_at":"2026-04-14T14:33:31.375Z","avatar_url":"https://github.com/yagoluiz.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exchange Rate API\n\n![](https://github.com/yagoluiz/exchange-rate-api/workflows/Docker%20Image%20CI/badge.svg)\n\nAPI responsible for making foreign currency quotes for BRL (Brazilian Real).\n\n## Instructions for run project\n\nRun project via Docker, via Visual Studio (F5 or CTRL + F5), Visual Studio Code (tasks project) or CLI.\n\n### Docker\n\n```bash\ndocker-compose up -d\n```\n\n### .NET CLI\n\n- Run project\n\n```bash\nsrc/Exchange.Rate.API\n\ndotnet watch run\n```\n\n- Run tests\n\n```bash\ndotnet test -t\n```\n\n## Endpoints\n\n*GET /quote*\n\n```bash\ncurl -X GET \"http://localhost:5000/api/v1/exchange-rates/quote?amount=10\u0026currency=USD\" -H  \"accept: application/json\"\n```\n\n*GET /conversion*\n\n```bash\ncurl -X GET \"http://localhost:5000/api/v1/exchange-rates/conversion?amount=10\u0026currency=USD\u0026customerSegment=PRIVATE\" -H  \"accept: application/json\"\n```\nFor more information visit swagger: *http://localhost:5000/swagger/index.html*\n\n## Deploy\n\n### AWS arquitecture reference\n\n![](https://raw.githubusercontent.com/thombergs/code-examples/master/aws/cloudformation/ecs-in-two-public-subnets/ecs-in-two-public-subnets.svg)\n\n*[https://github.com/thombergs/code-examples/blob/master/aws/cloudformation/ecs-in-two-public-subnets/ecs-in-two-public-subnets.svg](https://github.com/thombergs/code-examples/blob/master/aws/cloudformation/ecs-in-two-public-subnets/ecs-in-two-public-subnets.svg)*\n\nStep by step to manual deploy using **AWS CloudFormation**:\n\n1. Create Docker image repository\n\nThis project uses the AWS ECR (Docker Container Registry) as a Docker image repository. Other repositories can be used, such as the Docker Hub.\n\n- Execute docker-compose file:\n\n```bash\ndocker-compose up -d\n```\n\nEnter the folder *scripts/aws/ecr* and run the scripts:\n\n- Run script to create AWS ECR:\n\n```bash\nsh ecr-deploy.sh\n```\n\n- Run script to deploy the AWS ECR image. Necessary to include AWS **AccountId** as a parameter:\n\n```bash\nsh image-deploy.sh 999999999999\n```\n\n2. Create networks\n\nEnter the folder *scripts/aws/networks* and run the scripts:\n\n- Run script to create and deploy networks\n\n```bash\nsh network-deploy.sh\n```\n\n3. Create services\n\nCheck the status of network creation on AWS CloudFormation. Run this step only when the status is completed: **CREATE_COMPLETE**.\n\nEnter the folder *scripts/aws/services* and run the scripts:\n\n- Run script to create and deploy services. Necessary to include AWS **AccountId** as a parameter:\n\n```bash\nsh service-deploy.sh 999999999999\n```\n\nThe deployment of this project via AWS CloudFormation was based on the following references:\n\n- *https://reflectoring.io/aws-cloudformation-deploy-docker-image/*\n- *https://github.com/thombergs/code-examples/tree/master/aws/cloudformation/ecs-in-two-public-subnets*\n\n### Delete deploy\n\n```bash\naws cloudformation delete-stack \\\n  --stack-name exchange-rate-api-service \n```\n\nRun delete stack service step only when the status is completed: **CREATE_COMPLETE**.\n\n```bash\naws cloudformation delete-stack \\\n  --stack-name exchange-rate-api-network \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyagoluiz%2Fexchange-rate-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyagoluiz%2Fexchange-rate-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyagoluiz%2Fexchange-rate-api/lists"}