{"id":19302845,"url":"https://github.com/sapvs/usho","last_synced_at":"2026-04-12T12:40:32.345Z","repository":{"id":159703980,"uuid":"527136962","full_name":"sapvs/usho","owner":"sapvs","description":"URL Shortener spring boot application","archived":false,"fork":false,"pushed_at":"2026-03-06T12:33:49.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-06T16:47:25.741Z","etag":null,"topics":["cache","docker-compose","galera","java","mysql","redis-cache","spring-boot","url-shortener-microservice"],"latest_commit_sha":null,"homepage":"","language":"Java","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/sapvs.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-08-21T07:34:10.000Z","updated_at":"2026-03-06T12:33:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9ee4c43-d16f-4c95-b8ef-1a33e4735b13","html_url":"https://github.com/sapvs/usho","commit_stats":null,"previous_names":["sapvs/usho"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sapvs/usho","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapvs%2Fusho","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapvs%2Fusho/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapvs%2Fusho/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapvs%2Fusho/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sapvs","download_url":"https://codeload.github.com/sapvs/usho/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapvs%2Fusho/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31715492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"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":["cache","docker-compose","galera","java","mysql","redis-cache","spring-boot","url-shortener-microservice"],"created_at":"2024-11-09T23:23:59.875Z","updated_at":"2026-04-12T12:40:32.292Z","avatar_url":"https://github.com/sapvs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# usho\nURL Shortner java spring application.\n## Architecture\n1. nginx frontend\n1. Spring Boot Backend\n    1. Spring Web\n    1. Spring Redis\n    1. Spring Data MySQL\n1. Redis Cache\n1. MySQL Galera Database\n\n\n## Build\n```mvn clean package```\n\n## Run\n### Makefile\n```make up```\n\n### Docker Compose\n```\ndocker-compose up -f docker/docker-compose.yml\ndocker-compose -f docker/docker-compose.yml up --scale usho=2\n```\n\n### Stop\n### Makefile\n```make down```\n\n### Docker Compose\n```docker-compose down -f docker/docker-compose.yml```\n\n### Using Makefile\n\n#### Start\n```make up```\n#### Stop\n```make down```\n## Testing\nService runs behind nginx proxying to spring boot container usho\n## Swagger Not Available\nAccess http://localhost:4000/swagger-ui.html\n## Create short URL for long URL\n### Make\n```make usho```\n\n### Curl\n```\ncurl -X POST \"http://localhost:4000/usho\" \\\n-H  \"accept: application/json\" \\\n-H  \"Content-Type: application/json\" \\\n-d \"http://www.google.com\"\n```\n\nResponse\n```\n{\"id\":\"ailjoN\",\"longURL\":\"http://www.google.com\"}\n```\n\n#### Access short URL to confirm redirect in browser\n\n```http://localhost:4000/usho/ailjoN```\n\n### Delete mapping\n\n```curl -X DELETE http://localhost:4000/usho/ailjoN```\n\nConfirm again on the browser, accessing URL should return 404.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapvs%2Fusho","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsapvs%2Fusho","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapvs%2Fusho/lists"}