{"id":19403788,"url":"https://github.com/joeltadeu/shorter-url-service","last_synced_at":"2026-04-08T18:01:22.296Z","repository":{"id":45350329,"uuid":"211713144","full_name":"joeltadeu/shorter-url-service","owner":"joeltadeu","description":"This repository contains an example of a shorter url service using Java, Spring-boot and Redis as a database.","archived":false,"fork":false,"pushed_at":"2023-06-14T22:46:31.000Z","size":32,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T15:29:59.102Z","etag":null,"topics":["docker","docker-compose","grafana","java","redis","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/joeltadeu.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":"2019-09-29T19:13:58.000Z","updated_at":"2023-11-19T23:39:24.000Z","dependencies_parsed_at":"2024-11-10T11:31:24.269Z","dependency_job_id":"0a1b3724-31e0-44c6-86b0-42da3b19dfd5","html_url":"https://github.com/joeltadeu/shorter-url-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joeltadeu/shorter-url-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeltadeu%2Fshorter-url-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeltadeu%2Fshorter-url-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeltadeu%2Fshorter-url-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeltadeu%2Fshorter-url-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeltadeu","download_url":"https://codeload.github.com/joeltadeu/shorter-url-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeltadeu%2Fshorter-url-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31567227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"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":["docker","docker-compose","grafana","java","redis","spring-boot"],"created_at":"2024-11-10T11:30:29.193Z","updated_at":"2026-04-08T18:01:22.262Z","avatar_url":"https://github.com/joeltadeu.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shorterurl-service\nMost of us are familiar with seeing URLs like bit.ly or t.co on our Twitter or Facebook feeds. These are examples of shortened URLs, which are a short alias or pointer to a longer page link. For example, I can send you the shortened URL **http://bit.ly/SaaYw5** that will forward you to a very long Google URL with search results on how to iron a shirt.\n\n# Endpoints\n\n1.**/url**\n\nIt will accept the long url as input and convert to a shorter url. \n\n### For example: \n\n    POST \"https://github.com/joeltadeu/shorterurl/blob/master/src/main/java/com/shorterurl/resource/ShorterUrlResource.java\" as raw text to this endpoint. \n\nEndpoint will return:\n\n    http://localhost:8080/url/tN72u2j\n\n2.**/url/{key}**\n\nIt will extract key from the url and finds the match in redis cache to redirect to long url.\n\n### For example: \n\n    GET http://localhost:8080/url/tN72u2j\n    \n## Build application\n\n```shell\nmvn clean package\n```\n\n## Start infrastructure\n\nStart docker setup with grafana, prometheus, redis and the application.\n\n```shell\ndocker-compose up\ndocker-compose down\n```\n\n## Monitoring\n\n* Prometheus: [http://localhost:9090](http://localhost:9090)\n* Grafana: [http://localhost:3000](http://localhost:3000)\n    * login with admin:admin\n    * setup \"prometheus\" data source\n    * import grafana/grafana-dashboard.json\n    \n## Documentation (Swagger)\n\n\thttp://localhost:8080/swagger-ui.html","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeltadeu%2Fshorter-url-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeltadeu%2Fshorter-url-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeltadeu%2Fshorter-url-service/lists"}